public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23099] New: [4.0 regression] ICE in build_simple_base_path, at cp/class.c:460
@ 2005-07-27 19:03 dank at kegel dot com
  2005-07-27 19:11 ` [Bug c++/23099] [4.0/4.1 " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dank at kegel dot com @ 2005-07-27 19:03 UTC (permalink / raw)
  To: gcc-bugs

The following test case:
------------------------------------------------------------
struct Base {
  int x;
};

template <typename T>
struct A {
  static const int N = sizeof(static_cast<Base*>(T()));
};

struct Derived : Base {
  A<Derived*> a;
};
------------------------------------------------------------ 

gcc 2.95.3: compiles

gcc 3.4.4: compiles

gcc 4.0.1: ICE
b1.cc: In instantiation of 'A<Derived*>':
b1.cc:11:   instantiated from here
b1.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:459

gcc-4.1-20050716: ICE     
bug.cc: In instantiation of 'A<Derived*>':
bug.cc:11:   instantiated from here
bug.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:460

gcc CVS 2005-07-25: ICE
b1.cc: In instantiation of 'A<Derived*>':
b1.cc:11:   instantiated from here
b1.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:461

Thanks to mec for uncovering this, and bgibbons for minimizing the
test case.

-- 
           Summary: [4.0 regression] ICE in build_simple_base_path, at
                    cp/class.c:460
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dank at kegel dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-08-29 14:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27 19:03 [Bug c++/23099] New: [4.0 regression] ICE in build_simple_base_path, at cp/class.c:460 dank at kegel dot com
2005-07-27 19:11 ` [Bug c++/23099] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-08-28 18:11 ` mmitchel at gcc dot gnu dot org
2005-08-28 19:43 ` mmitchel at gcc dot gnu dot org
2005-08-29 13:58 ` cvs-commit at gcc dot gnu dot org
2005-08-29 14:53 ` cvs-commit at gcc dot gnu dot org
2005-08-29 14:57 ` mmitchel 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).