This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16119] In C language diagnostic messages, %E should but cannot display general expressions
- From: "trt at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 17:07:38 -0000
- Subject: [Bug c/16119] In C language diagnostic messages, %E should but cannot display general expressions
- References: <20040621181432.16119.trt@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From trt at acm dot org 2004-09-24 17:07 -------
Close but not quite right, a bogus ({anonymous}) appears.
In c-objc-common.c the suspect code is:
case 'E':
if (TREE_CODE (t) == IDENTIFIER_NODE)
n = IDENTIFIER_POINTER (t);
else
pp_expression (cpp, t);
break;
I think that should instead be
case 'E':
pp_expression (cpp, t);
return true;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16119