]> 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:13:05 +0000 (15:13 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 25 Oct 2002 15:13:05 +0000 (11:13 -0400)
commit6eb359685e52f13a7c6236184300b43e5a4d7ca6
treeee8ceb671f247299c4b6756beaccd217014712ca
parent8c40b097ec9ca1dcc51f7d03a7408dee50331bd4
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: r58532
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/typeck2.c