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++/32674] New: [4.1/4.2/4.3 regression] ICE in lvalue_p_1 initialising static variable inside template class


The following code snippet (similiar to PR31992) triggers an ICE since 4.1.x
onwards:

----------------------- snip -----------------------
class C
{
  static const int j = 3;
};

template<int> class A
{
    static const int i;
};

template<int N> const int A<N>::i(C::j);
----------------------- snip -----------------------

Error message:
bug.cc:11: internal compiler error: in lvalue_p_1, at cp/tree.c:148


-- 
           Summary: [4.1/4.2/4.3 regression] ICE in lvalue_p_1 initialising
                    static variable inside template class
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lmillward at gcc dot gnu dot org


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


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