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]

ICE 373 (template in namespace)


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



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