The following invalid testcase triggers an ICE since GCC 4.1.0:

==============================
template<typename> struct A
{
  typedef A* X;
};

template<typename T> struct B
{
  using A<T>::X::Y;
};

B<int> b;
==============================

bug.cc: In instantiation of 'B<int>':
bug.cc:11:   instantiated from here
bug.cc:8: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2/4.3 regression] ICE invalid using declaration
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to