g++ bug
llewelly@edevnull.com
llewelly@edevnull.com
Fri Sep 8 18:02:00 GMT 2000
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.
More information about the Gcc-bugs
mailing list