This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.1.1 stuff


> implicit.C:3: warning: implicit declaration of function `int foo(...)'
[...]
> This is actually quite important -- the C++ spec emphasizes that functions
> must be explicitly declared, and this failure to flag an error causes us some
> trouble with generated code that really does need to be flagged.

The C++ spec does not talk about errors and warnings. Instead, it
requires that an implementation should produce *diagnostic
message*. It is implementation-defined what constitutes these
diagnostics. For g++, diagnostics include error and warning message.

As Jason points out, -pedantic-errors turns warnings into errors.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]