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]

A couple of namespace+template bugs.



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


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