This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31330] New: small template-use example crashes g++ w/internal error
- From: "ilya at broad dot mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2007 20:14:19 -0000
- Subject: [Bug c++/31330] New: small template-use example crashes g++ w/internal error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/*
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