public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays
@ 2003-06-20 17:23 reichelt at gcc dot gnu dot org
  2003-06-20 17:23 ` [Bug c++/11267] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-06-20 17:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] ICE with variable-sized arrays
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P1
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org
                CC: dnovillo@gcc.gnu.org,gcc-bugs@gcc.gnu.org

The following code crashes tree-ssa (20030620), just compile with "g++ -c":

-------------------------------------------------------------------------------
class A
{
    A( int );
};

A::A ( int i )
{
    int ar[1][i];

    ar[0][0] = 0;
}
-------------------------------------------------------------------------------

The error message is:
bug.cc: In constructor `A::A(int)':
bug.cc:10: internal compiler error: in make_decl_rtl, at varasm.c:801
Please submit a full bug report, [etc.]


Probably the same problem shows up with the following C-code snippet
(just compile with "gcc -c"):

-------------------------------------------------------------------------------
void foo(int i)
{
    int f[1][i];

    static void bar() { f[0]; }
}
-------------------------------------------------------------------------------

Here, the error message is:
bug.c: In function `foo':
bug.c:3: internal compiler error: in make_decl_rtl, at varasm.c:801
Please submit a full bug report, [etc.]

Since this is a regression on mainline, I set the priority to "P1".


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

end of thread, other threads:[~2004-01-23  8:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-20 17:23 [Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays reichelt at gcc dot gnu dot org
2003-06-20 17:23 ` [Bug c++/11267] " reichelt at gcc dot gnu dot org
2003-06-21  1:31 ` bangerth at dealii dot org
2003-06-21  2:24 ` dhazeghi at yahoo dot com
2003-06-23  0:37 ` pinskia at physics dot uc dot edu
2003-08-02  4:00 ` [Bug c/11267] " pinskia at physics dot uc dot edu
2003-09-04  3:52 ` judd dot jenne at charter dot net
2003-11-28 20:55 ` [Bug c/11267] [tree-ssa] ICE with variable-sized arrays and nested functions pinskia at gcc dot gnu dot org
2004-01-23  2:03 ` rth at gcc dot gnu dot org
2004-01-23  8:49 ` cvs-commit at gcc dot gnu dot org
2004-01-23  8:56 ` rth 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).