[Bug c++/59759] internal compiler error: in unify, using std::enable_if on classes
gereon.kremer at cs dot rwth-aachen.de
gcc-bugzilla@gcc.gnu.org
Fri Jan 10 16:43:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #3 from Gereon Kremer <gereon.kremer at cs dot rwth-aachen.de> ---
(In reply to Marek Polacek from comment #2)
> I'd say a dup of PR59115.
I checked the following code from PR59115 that should also trigger this bug:
template<typename T, float = 0, int = 0, typename U = int> void foo(T, U) {}
void bar()
{
foo(0, 0);
}
This does not trigger an ICE for me, but produces the following, hence it does
not seem like a duplicate to me...
Test_GCC.cpp:15:30: error: ‘float’ is not a valid type for a template non-type
parameter
template<typename T, float = 0, int = 0, typename U = int> void foo(T, U) {}
^
Test_GCC.cpp:19: confused by earlier errors, bailing out
More information about the Gcc-bugs
mailing list