[Bug c++/58709] [c++11] Bogus? int vs. scoped enum printf warning when -fabi-version = 6

2013-10-13 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58709 --- Comment #3 from Andreas Schwab sch...@linux-m68k.org --- The warning is target independent and only depends on the type. You get the same warning for int vs long even if they are the same size.

[Bug c++/58709] [c++11] Bogus? int vs. scoped enum printf warning when -fabi-version = 6

2013-10-13 Thread ppluzhnikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58709 Paul Pluzhnikov ppluzhnikov at google dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/58709] [c++11] Bogus? int vs. scoped enum printf warning when -fabi-version = 6

2013-10-12 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58709 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org --- I think the warning is correct as it is not promoted to int in the function call. This is the same reason why bitfields warn when passing them for printf too.

[Bug c++/58709] [c++11] Bogus? int vs. scoped enum printf warning when -fabi-version = 6

2013-10-12 Thread ppluzhnikov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58709 --- Comment #2 from Paul Pluzhnikov ppluzhnikov at google dot com --- (In reply to Andrew Pinski from comment #1) I think the warning is correct as it is not promoted to int in the function call. How is it passed then? I see: movl