This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal Compiler Error
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Internal Compiler Error
- From: "Jody Hagins" <jody at atdesk dot com>
- Date: Sat, 10 Jun 2000 11:29:06 -0400
---------------------------
Using this compiler...
manetheren.atdesk.com:jody> g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
---------------------------
I get this error...
manetheren.atdesk.com:jody> g++ foo.cpp
foo.cpp: In instantiation of `Foo<char>::bar(int &) const':
foo.cpp:33: instantiated from here
foo.cpp:20: Internal compiler error.
foo.cpp:20: Please submit a full bug report.
foo.cpp:20: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
---------------------------
On this preprocessed source...
manetheren.atdesk.com:jody> g++ -E foo.cpp
# 1 "foo.cpp"
class Base_Foo
{
public:
virtual void bar(int &) const = 0;
};
template <class T>
class Foo
: public Base_Foo
{
public:
void bar(int &) const = 0;
private:
T t;
};
template <class T>
void Foo<T>::
bar(int &) const
{
}
class Oops
: public Foo<char>
{
public:
void bar(int &) const;
};
void foo()
{
Oops fc;
}
---
Dolce et decorum est pro patria morte.