Commit 32066e1a by Brendan Kehoe Committed by Brendan Kehoe

parse.y (unary_expr): Give a pedwarn if someone tries to use the &&label GNU extension.

	* parse.y (unary_expr): Give a pedwarn if someone tries to use the
	&&label GNU extension.

From-SVN: r15907
parent 6640eba9
1997-10-14 Brendan Kehoe <brendan@lisa.cygnus.com>
* parse.y (unary_expr): Give a pedwarn if someone tries to use the
&&label GNU extension.
Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
* decl.c (pushtag): Unset DECL_ASSEMBLER_NAME before setting it,
......
......@@ -1088,6 +1088,8 @@ unary_expr:
/* Refer to the address of a label as a pointer. */
| ANDAND identifier
{ tree label = lookup_label ($2);
if (pedantic)
pedwarn ("ANSI C++ forbids `&&'");
if (label == NULL_TREE)
$$ = null_pointer_node;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment