This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32023] No casts in lvalue error message
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2007 15:57:20 -0000
- Subject: [Bug c/32023] No casts in lvalue error message
- References: <bug-32023-14066@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from manu at gcc dot gnu dot org 2007-05-23 16:57 -------
(In reply to comment #8)
> The point I'm trying to express is that it's useful for user to have more
> precise explanation.
>
Would you be happy with something like?
t.c:9: error: lvalue required as increment operand
t.c:9: note: a cast is not a lvalue
Perhaps we could even pack it in a single line.
The feasibility of this depends on whether we can get this information when we
emit the diagnostic. I think if someone wants to pursue it, it shouldn't be
difficult. So why not keep it open? Low-hanging fruit like this is ideal for
newbies.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2007-05-23 16:57:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32023