This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/7228
- From: dje at gcc dot gnu dot org
- To: dje at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 25 Oct 2002 15:16:03 -0000
- Subject: c++/7228
- Reply-to: dje at gcc dot gnu dot org
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:13:06 -0000
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: dje@gcc.gnu.org 2002-10-25 08:13:06
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&r1=1.3026&r2=1.3027
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.485&r2=1.486
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.762&r2=1.763
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&r1=1.130&r2=1.131