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]

C++: namespace triggers an ICE in 19990621


> If class A is not defined inside namespace NL then no ICE is reported.
[...]
> namespace NL {
> 
>   template <typename T>
>     class A {
>       template <typename T_> friend class A; // Line 5
>     };
>   
> }
> int
> main(){
>   NL::A<int> a;
> }

Thanks for your bug report. This is fixed in the mainline by

1999-07-18  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (lookup_nested_type): Remove.
	(pushtag): Don't call it.

However, gcc 2.95 still has this bug. Should we move the fix over to
the branch? The change was between 1.379 and 1.380 of decl.c; the gcc
2.95 test suite passes unchanged with this patch applied.

Regards,
Martin


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