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. Please submit a full bug report.


---The GCC version (not just 3.xx; run gcc -v)
gcc version 2.95.3 20010315 (release)

---The system type (the dir name after gcc-lib in the output of gcc -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/specs

---The complete command line that triggers the bug
g++ main.cpp -Wall -save-temps -o Test

---The compiler output (error messages, warnings, etc)
main.cpp: In function `int main()':
main.cpp:28: warning: unused variable `class Derived * x'
main.cpp: At top level:
main.cpp: In instantiation of `Base<int>::Foo()':
main.cpp:33:   instantiated from here
main.cpp:11: Internal compiler error.
main.cpp:11: Please submit a full bug report.
main.cpp:11: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.

---The preprocessed file (*.i*) that triggers the bug, generated by
adding -save-temps to the complete compilation
    command (see below)

// =========================================== MIXIN
template<typename T>
class Base
{
public:
  virtual void Foo () = 0;
};

template<typename T>
void Base<T>::Foo ()
{
}


// ============================ DERIVED
class Derived : public Base<int>
{
public:
  virtual void Foo ()
    {
    }
};



int main ()
{
  Derived* x = new Derived;
  return 0;
}



---The options given when GCC was configured/built
  configure
  make bootstrap
  make install



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