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]

Re: Fwd: Re: Bug Report


> 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


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