This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67208] New: bool const to float* function argument allowed


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]