https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67208
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- GCC 4.6 has not been supported for some years, so reporting bugs against it here is not going to change anything. Your code is valid in C++03, but not C++11. It is correctly rejected by GCC 4.7+ in C++11 mode: main.cpp:11:14: error: cannot convert ‘const bool’ to ‘float*’ for argument ‘1’ to ‘void function(float*)’