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]

gcc C++ compiler bug


  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


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