PR c++/7228
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Oct 2002 15:13:05 +0000 (15:13 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Oct 2002 15:13:05 +0000 (15:13 +0000)
commitb7151a8b8bbd798c9c62349baee6b4fef6eed770
treeee8ceb671f247299c4b6756beaccd217014712ca
parent73b0c2cb7eb2ec1329beb2dbd37fb99357c21479
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58532 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/typeck2.c