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]
Other format: [Raw text]

Re: c++/5950: g++ - Internal error: Segmentation fault


Hi,

the code is in fact illegal, it already crashes gcc 2.95.x.
Here's a cleaned-up version testcase:

--------------snip here----------------------------
template <typename T> struct A
{
  void foo () {}
};

template void A<int>::foo; // illegal, should be foo();
--------------snip here----------------------------

Greetings,
Volker

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5950



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