This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44017] New: [4.6 regression] ICE with template hierarchy
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2010 20:35:44 -0000
- Subject: [Bug c++/44017] New: [4.6 regression] ICE with template hierarchy
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following valid code snippet triggers an ICE on trunk:
=================================
struct A
{
template<int> void foo();
};
template<int N> struct B : A
{
B() { foo<N>(); }
};
B<0> b;
=================================
bug.cc: In constructor 'B<N>::B() [with int N = 0]':
bug.cc:11:6: instantiated from here
bug.cc:8:9: internal compiler error: in build_base_path, at cp/class.c:270
Please submit a full bug report, [etc.]
--
Summary: [4.6 regression] ICE with template hierarchy
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-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=44017