This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class


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

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

           Summary: [tree-ssa] ICE on invalid variable sized array in class
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org

The following invalid code snippet

============================================================
template <int> struct A
{
    static int n;
    char text[n];
};

void foo() { A<0> a; }
============================================================

crashes tree-ssa:

bug.cc: In function `void foo()':
bug.cc:7: internal compiler error: in make_decl_rtl, at varasm.c:760
Please submit a full bug report, [etc.]

This might be related to PR 11267.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]