[Bug c++/61566] [4.9/4.10 Regression] ICE in write_unscoped_name
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 27 22:00:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61566
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In fact, it seems to me that something is going wrong with the context: I don't
see why isn't just a PARM_DECL, as happens for a non-template version of foo.
Better if Jason looks into the issue...
This is a slightly more compact testcase:
struct function
{
template < typename _Functor>
function (_Functor);
};
struct C
{
template <typename T>
void foo (T, function = [] {});
};
void bar ()
{
C c;
c.foo (1);
}
More information about the Gcc-bugs
mailing list