This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Ice with bad forward declarations
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Ice with bad forward declarations
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Fri, 02 Apr 1999 14:24:32 +0200
- cc: Theodore dot Papadopoulo at sophia dot inria dot fr
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
--------------------------------------------------------------------