given the following code:

int main(void) {
  switch(0)
    for(struct T {
      void f() {
        case 1: ;
      }
    };; );
}

/tmp % g++ test11.c++ -O4 -W -Wall -Wextra --pedantic                  
test11.c++: In member function 'void main()::T::f()':
test11.c++:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.


-- 
           Summary: g++ crashes with segfault upon wrong placement of case
                    label
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drahflow at gmx dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36993

Reply via email to