[Bug c++/56966] [4.7 Regression] wrong warning with -Werror (wrong code without Werror?)

2013-05-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56966 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/56966] [4.7 Regression] wrong warning with -Werror (wrong code without Werror?)

2013-04-15 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56966 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2013-04-15 17:34:20 UTC --- I don't think this is wrong code at all. The warning is correct for the code as given but wrong for memset in general. The code looks like: void