This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++: namespace triggers an ICE in 19990621
- To: ovi at physics dot utoronto dot ca, mark at codesourcery dot com
- Subject: C++: namespace triggers an ICE in 19990621
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sun, 8 Aug 1999 17:23:36 +0200
- CC: egcs-bugs at egcs dot cygnus dot com, gcc-patches at gcc dot gnu dot org
- References: <377E957A.18FBB29@physics.utoronto.ca>
> 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