This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11061] New: Internal Compiler Error in g++-2.95.4 while using multiple templates
- From: "hplip at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 08:27:31 -0000
- Subject: [Bug c++/11061] New: Internal Compiler Error in g++-2.95.4 while using multiple templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11061
Summary: Internal Compiler Error in g++-2.95.4 while using
multiple templates
Product: gcc
Version: 2.95.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hplip@web.de
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i686-linux-pc-gnu
GCC host triplet: i686-linux-pc-gnu
GCC target triplet: i686-linux-pc-gnu
While compiling the following code:
---
template <class T, template <class> class C> class derived : public C<T> {
public:
derived(int dim) : C<T> (dim) { }
};
int main(int argc, char *argv[]) {
return 0;
}
---
with the command:
~/src/bugs$ g++ -o bug bug.cc
I get the error message:
bug.cc: In method `derived<T,C>::derived(int)':
bug.cc:5: Internal compiler error.
bug.cc:5: Please submit a full bug report.
bug.cc:5: Internal compiler error:
bug.cc:5: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
my gcc -v reports:
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs gcc version 2.95.4
20011002 (Debian prerelease)
Note: The same code works fine with gcc-3.2.3!
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.