https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429
--- Comment #2 from Valentin ---
Comment on attachment 45782
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45782
Example code
template
void f(Function&& function) {
// `0` is not special. Can be any value of any type.
function(0)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429
--- Comment #1 from Valentin ---
Sorry, this was the wrong attachment.
The proper code is:
template
void f(Function&& function) {
// `0` is not special. Can be any value of any type.
function(0);
}
// No error when this template para