[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 14 05:11:00 GMT 2006
------- Comment #8 from mmitchel at gcc dot gnu dot org 2006-11-14 05:11 -------
Subject: Bug 29106
Author: mmitchel
Date: Tue Nov 14 05:11:32 2006
New Revision: 118803
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118803
Log:
PR c++/29106
* init.c (constant_value_1): Treat a DECL_INITIAL of
error_mark_node as meaning that the variable is uninitialized,
rather than erroneously initialized.
PR c++/29106
* g++.dg/init/self1.C: New test.
* g++.dg/other/fold1.C: Adjust error markers.
* g++.dg/init/member1.C: Likewise.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/self1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/init.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/member1.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/fold1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106
More information about the Gcc-bugs
mailing list