[Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed May 12 15:14:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-05-11 18:11 -------
Hm, I'm not exactly sure what you mean -- if you give -Werror to the compiler,
then shouldn't you expect the compiler to stop when it encounters an
error? If your Makefiles are written such that they don't show the actual
commmand line of the compiler invokation, this can hardly count as a bug
in gcc.
That being said, we indeed have a regression:
----------
main () {}
----------
yields
g/x> /home/bangerth/bin/gcc-2.95.3/bin/c++ x.cc -Wall -W -Werror
cc1plus: warnings being treated as errors
x.cc:1: warning: ANSI C++ forbids declaration `main' with no type
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ x.cc -Wall -W -Werror
cc1plus: warnings being treated as errors
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ x.cc -Wall -W -Werror
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc -Wall -W -Werror
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ x.cc -Wall -W -Werror
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type
In other words, the indication of -Werror was dropped sometime between
3.2.x and 3.3.x.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |minor
Known to fail| |3.3.4 3.4.0 3.5.0
Known to work| |2.95.3 3.2.3
Summary|-Werror should provide |[3.3/3.4/3.5 regression] -
|notification of why gcc is |Werror should provide
|exiting |notification of why gcc is
| |exiting
Target Milestone|--- |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378
More information about the Gcc-bugs
mailing list