This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67208] New: bool const to float* function argument allowed
- From: "andrew dot larson at cpfd-software dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Aug 2015 16:14:32 +0000
- Subject: [Bug c++/67208] New: bool const to float* function argument allowed
- Auto-submitted: auto-generated
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: andrew.larson@cpfd-software.com
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.