: unassigned at gcc dot gnu.org
Reporter: vakevk at gmail dot com
Target Milestone: ---
Created attachment 45782
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45782&action=edit
Example code
g++ (Debian 8.2.0-20) 8.2.0
Compiling the attached code with `g++ testcase.cpp` result
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
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)
: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: vakevk at gmail dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org