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++/25808] constant on rhs of conditional assignment



------- Comment #2 from dcb314 at hotmail dot com  2006-01-16 22:28 -------
(In reply to comment #1)
> Both of these are questionable, I don't see why there should be a different
> diagnostic.

Because the two different diagnostics make it easier to grep for.

For example, Intel C++ compiler finds case 1, but says nothing
about case 2. Easy to grep for.

GNU C++ produces the same message for case 1 and case 2, leading
to a lot of time wasting manual checking of diagnostics.

Surely case 1 is much more likely to be programmer error than case 2 ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25808


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