[Bug c++/31330] New: small template-use example crashes g++ w/internal error
ilya at broad dot mit dot edu
gcc-bugzilla@gcc.gnu.org
Fri Mar 23 20:14:00 GMT 2007
/*
the following example crashes g++:
4:13pm ilya@wga1 /wga/dev/ilya > g++ -v
Using built-in specs.
Target: ia64-unknown-linux-gnu
Configured with: ../configure --prefix=/wga1/gcc-4.1.1
Thread model: posix
gcc version 4.1.1
4:13pm ilya@wga1 /wga/dev/ilya > echo $OSTYPE
linux
4:13pm ilya@wga1 /wga/dev/ilya > echo $MACHTYPE
ia64
4:13pm ilya@wga1 /wga/dev/ilya > g++ t2.cc
t2.cc:8: internal compiler error: in is_ancestor, at cp/name-lookup.c:2222
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
4:13pm ilya@wga1 /wga/dev/ilya >
*/
class A {
template <class B> void foo(B b) {
}
};
template <class SubOfB>
void SubOfB::bar(A a) {
a.foo(*this);
}
--
Summary: small template-use example crashes g++ w/internal error
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ilya at broad dot mit dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31330
More information about the Gcc-bugs
mailing list