This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE 373 (template in namespace)
- To: egcs-bugs at cygnus dot com
- Subject: ICE 373 (template in namespace)
- From: Tobias Ringstrom <tori at prosolvia dot se>
- Date: Wed, 15 Jul 1998 15:11:21 +0200 (CEST)
- Organization: Prosolvia AB
The following incorrect code gives an internal compiler error using today's
CVS-egcs on a i686-pc-linux-gnu.
namespace ns {
template <class T> class A {};
}
void foo()
{
ns::A(); // ERROR, missing template argument
}
> g++ egcs-bug3.cpp
egcs-bug3.cpp: In function `void foo()':
egcs-bug3.cpp:7: Internal compiler error 373.
egcs-bug3.cpp:7: Please submit a full bug report to `egcs-bugs@cygnus.com'.
/ Tobias