[Bug c++/35652] [4.3/4.4/4.5 Regression] offset warning should be given in the front-end
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Dec 20 18:50:00 GMT 2009
------- Comment #34 from jakub at gcc dot gnu dot org 2009-12-20 18:50 -------
It was warning too much, even about if (0) code, so it broke a lot of valid
code with -Werror, including stuff like:
#include <string.h>
int f (char *s)
{
return strcmp (s, "");
}
If a warning like this is to be done by the FE, it would need to be only queued
in the IL and emitted only if it survived at least some initial DCE. Perhaps
in a form of an artificial __builtin_warning, or something similar.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35652
More information about the Gcc-bugs
mailing list