This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29106] [4.0 Regression] sizeof(*var) in expression drops entire line of code out of compile
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2007 19:58:54 -0000
- Subject: [Bug c++/29106] [4.0 Regression] sizeof(*var) in expression drops entire line of code out of compile
- References: <bug-29106-13259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from reichelt at gcc dot gnu dot org 2007-01-27 19:58 -------
Subject: Bug 29106
Author: reichelt
Date: Sat Jan 27 19:58:38 2007
New Revision: 121238
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121238
Log:
Backport:
2006-11-13 Mark Mitchell <mark@codesourcery.com>
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.
* g++.dg/init/self1.C: New test.
* g++.dg/other/fold1.C: Adjust error markers.
* g++.dg/init/member1.C: Likewise.
2006-08-27 Simon Martin <simartin@users.sourceforge.net>
PR c++/28284
* pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if
it
is NULL.
* g++.dg/template/pr28284.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/init/self1.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/pr28284.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/init.c
branches/gcc-4_0-branch/gcc/cp/pt.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/init/member1.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/fold1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106