[Bug c++/33952] New: -Wfatal-errors truncates multi-line error messages.
gcc-bugzilla at contacts dot eelis dot net
gcc-bugzilla@gcc.gnu.org
Tue Oct 30 22:16:00 GMT 2007
Consider:
int main () { goto foo; { int i = 0; foo:; } }
Compiling this snippet /without/ -Wfatal-errors produces:
t.cpp: In function âÂÂint main()âÂÂ:
t.cpp:1: error: jump to label âÂÂfooâÂÂ
t.cpp:1: error: from here
t.cpp:1: error: crosses initialization of âÂÂint iâÂÂ
Compiling the snippet /with/ -Wfatal-errors, we get:
t.cpp: In function âÂÂint main()âÂÂ:
t.cpp:1: error: jump to label âÂÂfooâÂÂ
compilation terminated due to -Wfatal-errors.
Alas, half the error message has disappeared.
--
Summary: -Wfatal-errors truncates multi-line error messages.
Product: gcc
Version: 4.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bugzilla at contacts dot eelis dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33952
More information about the Gcc-bugs
mailing list