This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28031] [4.2 regression] bogus jump to case label crosses initialization error with C99 anonymous initializers



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]