This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28031] [4.2 regression] bogus jump to case label crosses initialization error with C99 anonymous initializers
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jun 2006 16:52:01 -0000
- Subject: [Bug c++/28031] [4.2 regression] bogus jump to case label crosses initialization error with C99 anonymous initializers
- References: <bug-28031-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-06-14 16:52 -------
Here is a reduced testcase:
typedef struct terror_struct {int c; } terror;
int main(void)
{
terror e;
switch(1)
{
case 1:
e = (terror){400};
case 2:
break;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28031