Manuel López-Ibáñez - [PING^2] PR24924 front end and preprocessor pedantic_errors settings sho (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
:ADDPATCH c++:
This patch makes the preprocessor to give an error for pedwarns by default unless fpermissive is given, when the language is a dialect of C++.
Boostrapped and regression tested.Does it look OK to you?
2007-01-27 Manuel Lopez-Ibanez manu@gcc.gnu.org
PR c++/24924
- c-opts.c (c_common_post_options): Handle C++ post-processing here. Set also -pedantic-errors by default for the preprocessor unless -fpermissive is given.
cp/
- decl.c (cxx_init_decl_processing): Move command-line options processing to c-opts.c.
testsuite/
- g++.dg/cpp/pedantic-errors.C: New.
- g++.dg/cpp/permissive.C: New.