This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE namespace/template bug in egcs-2.93.03
- To: egcs-bugs at cygnus dot com
- Subject: ICE namespace/template bug in egcs-2.93.03
- From: Oskar Enoksson <osken393 at student dot liu dot se>
- Date: Sun, 28 Feb 1999 14:39:51 +0100 (MET)
The following code produces an ICE with egcs-2.93.03 on
alphaev56-dec-osf4.0d:
///// Begin foo.cpp /////
namespace Foo {
template<int N> class T {};
template<int N> void Hello(T<N> &) {}
}
main() {
using Foo::T;
using Foo::Hello;
}
///// End foo.cpp /////
> c++ -o foo foo.cpp
foo.cpp: In function `int main()':
foo.cpp:8: Internal compiler error.
foo.cpp:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
foo.cpp:8: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
Regards
/Oskar Enoksson