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]

Ice with bad forward declarations



	The following program fails with and ICE with
gcc version egcs-2.93.14 19990330 (gcc2 ss-980929 experimental).
(under both solaris2.6 and linux-2.0.36 but that seems rather 
independent).

This is related to the bad forward declaration of class A on the 
first line.

// Build don't link:
class A;
template <class P>
class A {
};

hawai->g++ TempNameSpace.C
TempNameSpace.C:4: Internal compiler error.
TempNameSpace.C:4: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
TempNameSpace.C:4: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

	Thanks

	Theo.

 --------------------------------------------------------------------
 Theodore Papadopoulo
 Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------





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