public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29175]  New: ICE on invalid: C++ static variable length array
@ 2006-09-21 21:35 ian at airs dot com
  2006-09-28  1:18 ` [Bug c++/29175] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: ian at airs dot com @ 2006-09-21 21:35 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

Compiling this invalid C++ code with current mainline:

void foo() { static int c = 2; static const char *a[][c] = { { "1", "2" } }; }

gives me:

foo.cc: In function ‘void foo()’:
foo.cc:1: internal compiler error: in tree_low_cst, at tree.c:4519
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It should instead say something along the lines of

foo.cc:1: error: array bound is not an integer constant


-- 
           Summary: ICE on invalid: C++ static variable length array
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ian at airs dot com


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


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

end of thread, other threads:[~2007-02-03 20:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-21 21:35 [Bug c++/29175] New: ICE on invalid: C++ static variable length array ian at airs dot com
2006-09-28  1:18 ` [Bug c++/29175] " pinskia at gcc dot gnu dot org
2006-09-28  5:59 ` [Bug c++/29175] [4.0/4.1/4.2 regression] " bangerth at dealii dot org
2006-10-01 22:58 ` mmitchel at gcc dot gnu dot org
2006-10-08 20:29 ` [Bug c++/29175] [4.0/4.1/4.2 regression] ICE on invalid C++ " reichelt at gcc dot gnu dot org
2006-10-11 22:37 ` mmitchel at gcc dot gnu dot org
2006-10-12  4:36 ` mmitchel at gcc dot gnu dot org
2006-10-12  4:40 ` [Bug c++/29175] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-10-12 23:53 ` mmitchel at gcc dot gnu dot org
2006-10-12 23:54 ` [Bug c++/29175] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 20:20 ` gdr 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).