Changes in C++ FE regarding pedwarns to be errors are harmful

Gabriel Dos Reis gdr@cs.tamu.edu
Sun Jan 13 15:33:00 GMT 2008


Ismail Dönmez <ismail@pardus.org.tr> writes:

| Hi again,
| 
| Wednesday 09 January 2008 00:28:54 tarihinde Manuel López-Ibáñez şunları 
| yazmıştı:
| > For your particular example, you could open a regression bug against
| > 4.3 that says:
| > * '"foo' redefined" is not mandated by the standard or it is not
| > serious enough, so it should not be a pedwarn just a normal warning;
| > or
| 
| Looks like this is actually mandated by standard :-( , thats what I am told on 
| #gcc anyway :)

    #define foo bar
    #define foo baz

is asking for trouble -- one should look for fixing the source of that
inconsistency. 

-- Gaby



More information about the Gcc mailing list