public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67208] New: bool const to float* function argument allowed
@ 2015-08-13 16:14 andrew.larson@cpfd-software.com
  2015-08-13 16:17 ` [Bug c++/67208] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: andrew.larson@cpfd-software.com @ 2015-08-13 16:14 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-13 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-13 16:14 [Bug c++/67208] New: bool const to float* function argument allowed andrew.larson@cpfd-software.com
2015-08-13 16:17 ` [Bug c++/67208] " redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).