This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25808] constant on rhs of conditional assignment
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2006 22:28:49 -0000
- Subject: [Bug c++/25808] constant on rhs of conditional assignment
- References: <bug-25808-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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