This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ bug
- To: Marc Stamminger <Marc dot Stamminger at sophia dot inria dot fr>
- Subject: Re: g++ bug
- From: llewelly at edevnull dot com
- Date: 08 Sep 2000 18:03:35 -0600
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <39B784AD.8503A617@sophia.inria.fr>
Marc Stamminger <Marc.Stamminger@sophia.inria.fr> writes:
[snip]
> -----------------------------
> namespace NS {
>
> template<typename T>
> class C
> {
> public:
> class D {};
> enum E {a,b,c};
> };
>
> }
>
> void
> main()
> {
> NS::C<int> tri;
> }
> -----------------------------
>
> If I leave away the namespace, the declaration of D or E or the template
> parameter, or even if I swap the declaration of D and E, the error does
> not occur.
>
> My machine is a very new SGI visual PC and SGI's linux is very new and
> probably buggy, so maybe its not really gcc's fault. The version
> obtained by g++ -v is:
>
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>
[snip]
This bug appears to be fixed in gcc 2.95.2 (tested on
i686-pc-linux-gnu)
Try upgrading your compiler.
Thank you for your bug report.