This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal Compiler Error



---------------------------
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]