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



             Bug #: 56078

           Summary: causes cc1 to crash

    Classification: Unclassified

           Product: gcc

           Version: 4.6.3

            Status: UNCONFIRMED

          Severity: minor

          Priority: P3

         Component: c

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: s...@tomlinson.com





tested with 4.6.3 and 3.3.2

possibly illegal syntax, but...

---------------------------



#include <stdio.h>



struct Test {

    int number;

    char name[];

};



struct Test T1 = {

    .number = 'q',

    .name = "zabc",

    .name[0] = 'q'

    };



main ()

{

    printf( "%s:%c\n", T1.name, T1.number );

}



--------------------

n.c:11:2: internal compiler error: Segmentation fault

Please submit a full bug report...

Reply via email to