This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/33952] New: -Wfatal-errors truncates multi-line error messages.


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


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