[Bug c++/25808] constant on rhs of conditional assignment

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 16 22:28:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list