This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc C++ compiler bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc C++ compiler bug
- From: Frederik Schaffalitzky <fsm at robots dot ox dot ac dot uk>
- Date: Wed, 26 Jan 2000 11:20:29 +0000 (GMT)
- Reply-To: Frederik Schaffalitzky <fsm at robots dot ox dot ac dot uk>
The following simple source file t.cc generates an internal compiler
error with gcc 2.95.2, but not with egcs 2.91.60.
Frederik
------------------------------------t.cc--------------------------------
struct base {
};
template <class V>
struct graph {
struct vertex_container;
};
template <class V>
struct graph<V>::vertex_container : public base { // <-- here
};
// compiler error from 'gcc -o /dev/null -c t.cc' :
// t.cc:10: Internal compiler error.
// t.cc:10: Please submit a full bug report.
// t.cc:10: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
// output from 'gcc -v' :
// Reading specs from /data/az3/fsm/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
// gcc version 2.95.2 19991024 (release)
// output from 'uname -a' :
// SunOS imogen 5.6 Generic_105181-17 sun4u sparc SUNW,Ultra-1