This is the mail archive of the gcc-patches@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]

[C++ PATCH] Improve ?: operator error messages.


This patch simply improves the error messages when the two last operands
of a ?: are of different types. This brings the messages used in
templated methods/functions on par with those used for regular
methods/functions.

Tested on i686-pc-linux-gnu with gcc version 4.2.0 20051206
(experimental). There were two regressions with respect to
gcc version 4.2.0 20051124 (experimental) but looking at the output
these are totally unrelated.

FAIL: g++.dg/opt/mmx2.C (test for excess errors)
FAIL: g++.dg/other/mmintrin.C (test for excess errors)

:ADDPATCH C++:

Attachment: patch
Description: Text document


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