https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67208
Bug ID: 67208
Summary: bool const to float* function argument allowed
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Created attachment 36182
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36182&action=edit
Example to compile and run to see said behavior.
See attachment for repo.
(1) Passing a bool const variable to function(float*) compiles.
(2) Passing a bool variable to function(float*) does not compile.
Compiler should treat (1) as an error.