c++/7228
dje@gcc.gnu.org
dje@gcc.gnu.org
Fri Oct 25 08:26:00 GMT 2002
The following reply was made to PR c++/7228; it has been noted by GNATS.
From: dje@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: c++/7228
Date: 25 Oct 2002 15:20:31 -0000
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_2-branch
Changes by: dje@gcc.gnu.org 2002-10-25 08:20:30
Modified files:
gcc/cp : ChangeLog class.c cp-tree.h typeck2.c
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.2685.2.114.2.32&r2=1.2685.2.114.2.33
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.436.2.10.2.8&r2=1.436.2.10.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.681.2.12.2.6&r2=1.681.2.12.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.117.2.2&r2=1.117.2.2.2.1
More information about the Gcc-prs
mailing list