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++/18121] New: [4.0 regression] ICE with array type


The following valid code snippet causes a segfault on mainline:

===================================
template<int> struct A
{
    static int const i = 1;
};

template<int N> struct B
{
    typedef int (*p)[A<N>::i];
};
===================================

According to Phil's regression hunter we have:
: Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455).

So this was probably introduced by the tree-ssa merge.

-- 
           Summary: [4.0 regression] ICE with array type
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          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


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


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