public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56078] New: causes cc1 to crash
@ 2013-01-22 17:28 stan at tomlinson dot com
  2013-01-22 22:37 ` [Bug c/56078] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: stan at tomlinson dot com @ 2013-01-22 17:28 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-03-13 18:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22 17:28 [Bug c/56078] New: causes cc1 to crash stan at tomlinson dot com
2013-01-22 22:37 ` [Bug c/56078] " pinskia at gcc dot gnu.org
2013-01-23  7:30 ` mpolacek at gcc dot gnu.org
2013-01-23  8:07 ` jakub at gcc dot gnu.org
2013-01-23 14:23 ` jakub at gcc dot gnu.org
2013-01-23 14:33 ` jakub at gcc dot gnu.org
2013-01-23 17:53 ` joseph at codesourcery dot com
2013-01-24 13:28 ` jakub at gcc dot gnu.org
2013-01-24 13:33 ` jakub at gcc dot gnu.org
2013-01-24 17:00 ` jakub at gcc dot gnu.org
2013-01-24 17:02 ` jakub at gcc dot gnu.org
2014-03-13 18:16 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).