]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/7228 (ICE when using member template and template function)
authorDavid Edelsohn <edelsohn@gnu.org>
Fri, 25 Oct 2002 15:20:30 +0000 (15:20 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 25 Oct 2002 15:20:30 +0000 (11:20 -0400)
commitad3e893dfccdf6c61014e35ddb7c6d6fa652d396
treeaf00e1fc86950ebcbc60479eaf891f9d821beb90
parent78fd139e9d9262522d5ce4b2e1814b03863cc3d7
re PR c++/7228 (ICE when using member template and template function)

        PR c++/7228
        * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
        lang_type structure exists before accessing field.
        (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
        (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
        (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
        * class.c (check_field_decls): Use new macros.
        * typeck2.c (process_init_constructor): Remove redundant check for
        existence of lang_type structure.

From-SVN: r58533
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/typeck2.c