public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38648]  New: [4.2/4.3/4.4 regression] ICE with string literal
@ 2008-12-27 23:24 reichelt at gcc dot gnu dot org
  2008-12-27 23:25 ` [Bug c++/38648] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-27 23:24 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

========================
char a[1];

int foo(
{
  a = "";
  return 0;
}
========================

bug.cc:5: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

A similar code snippet triggers an ICE since GCC 3.1:

========================
char a[1];

int foo(a = "")
{
  return 0;
}
========================

bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with string literal
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-01-15 16:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
2008-12-27 23:25 ` [Bug c++/38648] " reichelt at gcc dot gnu dot org
2008-12-27 23:48 ` pinskia at gcc dot gnu dot org
2008-12-29 23:38 ` rguenth at gcc dot gnu dot org
2008-12-30  1:05 ` pinskia at gcc dot gnu dot org
2009-01-10 11:49 ` jakub at gcc dot gnu dot org
2009-01-10 11:51 ` [Bug c++/38648] [4.2/4.3 " jakub at gcc dot gnu dot org
2009-01-15 16:11 ` rguenth at gcc dot gnu dot 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).