[Bug preprocessor/65834] give error for #if with no expression at the previous location

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 24 21:06:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65834

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe someone might want to put something else after TEST.  I think both are
correct to warn.  clang error location might be more useful in some cases but
wrong in others.  Likewise the way GCC is correct for some cases but wrong for
others.  The biggest question is which happens more often in real life.  I
don't have any thoughts on that one.


More information about the Gcc-bugs mailing list