public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11076] New: ICE with invalid base class
@ 2003-06-03  9:36 reichelt@gcc.gnu.org
  2003-06-03 14:12 ` [Bug c++/11076] " bangerth@dealii.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt@gcc.gnu.org @ 2003-06-03  9:36 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-10-24 14:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03  9:36 [Bug c++/11076] New: ICE with invalid base class reichelt@gcc.gnu.org
2003-06-03 14:12 ` [Bug c++/11076] " bangerth@dealii.org
2003-06-22 13:10 ` pinskia at physics dot uc dot edu
2003-08-02  4:06 ` pinskia at physics dot uc dot edu
2003-10-21 14:52 ` lerdsuwa at gcc dot gnu dot org
2003-10-24 14:47 ` cvs-commit at gcc dot gnu dot org
2003-10-24 14:51 ` lerdsuwa at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).