This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33952] New: -Wfatal-errors truncates multi-line error messages.
- From: "gcc-bugzilla at contacts dot eelis dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2007 22:15:53 -0000
- Subject: [Bug c++/33952] New: -Wfatal-errors truncates multi-line error messages.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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