This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
A couple of namespace+template bugs.
- To: egcs-bugs at cygnus dot com
- Subject: A couple of namespace+template bugs.
- From: scott snyder <snyder at d0sgif dot fnal dot gov>
- Date: Thu, 26 Feb 1998 00:24:25 CST
hi -
I see that Martin's namespace code as been added to the cvs tree.
Cool!
I haven't seen much discussion of these changes yet, but i thought the
least i could do is send in a couple bug reports. :-)
(This egcs identifies itself as
`gcc version egcs-2.91.09 980221 (gcc-2.8.0 release)';
it was checked out the afternoon of Feb. 25.
The platform is mips-sgi-irix6.2.)
The following input:
-----------------------------
namespace foo {
template <class T>
class x {};
}
foo::x<int> y;
-----------------------------
gets the error
a.cc:8: Internal compiler error 42.
a.cc:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
And this input:
-----------------------------
namespace foo {
template <class T>
class x {};
}
class y : public foo::x<int> {};
-----------------------------
gets this error:
a.cc:8: parse error before `{'
thanks!
sss