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++/11076] New: ICE with invalid base 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=11076

           Summary: ICE with invalid base class
           Product: gcc
           Version: 3.4
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org
                CC: gcc-bugs@gcc.gnu.org

This is fallout from PR5702:
The following code crashes gcc 2.95.x - 3.3 and mainline:

----------------------------------------------------------------
template<typename, typename T=void> struct A
{
    typedef A<T,T> B;
};

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

C<void> c;
----------------------------------------------------------------

The error message on mainline is:

pr5702.cc: In instantiation of `C<void>':
pr5702.cc:12:   instantiated from here
pr5702.cc:9: internal compiler error: tree check: accessed elt 2 of tree_vec 
   with 1 elts in tsubst, at cp/pt.c:6697
Please submit a full bug report,



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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