This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Fwd: Re: Bug Report
- To: jdassen at wi dot leidenuniv dot nl
- Subject: Re: Fwd: Re: Bug Report
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 3 Feb 1999 11:39:18 +0100
- CC: egcs-bugs at cygnus dot com
- References: <199902031021.LAA23643@ultra5.wi.leidenuniv.nl>
> The problem reported below is repeatable on a Debian GNU/Linux
> "frozen" (2.1 to be) system with gcc version egcs-2.91.60 Debian 2.1
> (egcs-1.1.1 release)
The egcs development release doesn't produce an internal error
anymore, so this might be fixed.
> template <class T>
> class ClassA {
> static void methodA() { }
> static NonExistentClass<T>;
> };
Please note that this is invalid C++. I can't even guess what the
construct
static NonExistentClass<T>;
is supposed to mean; for a static member, the name of the member is
missing. Or, if the name of the member is supposed to be
NonExistentClass, its type is missing (which is what g++ assumes).
So this is confusing even to a human reader; no surprise g++ is
confused :-)
Hope this helps,
Martin