[Bug c/56078] New: causes cc1 to crash

stan at tomlinson dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 22 17:28:00 GMT 2013


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: unassigned@gcc.gnu.org
        ReportedBy: stan@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...



More information about the Gcc-bugs mailing list