------- Comment #8 from reichelt at gcc dot gnu dot org 2006-12-11 21:00
-------
> Fixed on mainline.
Alas this is only partially true:
Although the original testcase is indeed fixed on mainline (and 4.2 branch),
the following variant (which only differs in the return type of the template
function) still crashes:
====================================
struct A
{
template<int> int foo(X);
};
====================================
I'll open a new PR for this failure.
Btw, the testcase from comment #1 is also fixed on the 4.1 branch
(with "void" or "int" as return type).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27961