[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
--- 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
[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
--- Comment #7 from mmitchel at gcc dot gnu dot org 2006-11-01 18:28 --- Egads, that's awful. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106
[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
--- Comment #6 from janis at gcc dot gnu dot org 2006-10-27 23:16 --- A regression hunt on the gcc-4_1-branch identified the following patch where the failure starts: http://gcc.gnu.org/viewcvs?view=rev&rev=111231 r111231 | mmitchel | 2006-02-18 08:37:34 + (Sat, 18 Feb 2006) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106
[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
--- Comment #5 from rguenth at gcc dot gnu dot org 2006-10-27 09:46 --- Janis, can you hunt this? The 4.1 branch doesn't print anything while 4.2 prints "size of thingy is 4". Thanks! -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||janis at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106
[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-17 19:27 --- Confirmed, still broken as of today "4.1.2 20060917". -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-09-17 19:27:47 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106
[Bug c++/29106] [4.0/4.1 Regression] sizeof(*var) in expression drops entire line of code out of compile
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-16 23:45 --- It also worked in "4.1.0 20051026". -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Known to fail||4.1.2 Summary|sizeof(*var) in expression |[4.0/4.1 Regression] |drops entire line of code |sizeof(*var) in expression |out of compile |drops entire line of code ||out of compile Target Milestone|--- |4.0.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106