http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51712

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-04-17
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |joseph at codesourcery dot
                   |                            |com
     Ever Confirmed|0                           |1

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-17 
17:49:58 UTC ---
Unfortunately, I cannot see any way to know that FOO is a constant that comes
from an enum. Joseph, is this possible to do in the C FE? 

Also, constants don't have locations in GCC, so no way to know that it comes
from a macro. Sorry!

This a problem also in G++, but in this testcase it doesn't trigger because arg
is considered to be signed. I guess it can trigger in other testcases.

Reply via email to