aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-11-24 10:30:46 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-11-24 10:30:46 +0000
commit2f401cc807e4a272e511d76e7711c05c967956da (patch)
tree20a099d0a6fc33aefedda658079bc41fbd79cb59 /gcc/c-parse.in
parent3d7e9ba41e50b16c6d77392d3fd85a8f46c9f13e (diff)
downloadgcc-2f401cc807e4a272e511d76e7711c05c967956da.zip
gcc-2f401cc807e4a272e511d76e7711c05c967956da.tar.gz
gcc-2f401cc807e4a272e511d76e7711c05c967956da.tar.bz2
c-parse.in (unary_expr): Move VA_ARG from here ...
* c-parse.in (unary_expr): Move VA_ARG from here ... (primary): ... to here. cp: * parse.y (unary_expr): Move VA_ARG from here ... (primary): ... to here. testsuite: * g++.old-deja/g++.other/vaarg4.C: New test. * gcc.c-torture/compile/20001123-1.c: New test. From-SVN: r37703
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 5943fa4..d73ba4b 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -514,8 +514,6 @@ unary_expr:
{ $$ = build_unary_op (REALPART_EXPR, $2, 0); }
| IMAGPART cast_expr %prec UNARY
{ $$ = build_unary_op (IMAGPART_EXPR, $2, 0); }
- | VA_ARG '(' expr_no_commas ',' typename ')'
- { $$ = build_va_arg ($3, groktypename ($5)); }
;
sizeof:
@@ -688,6 +686,8 @@ primary:
}
| primary '(' exprlist ')' %prec '.'
{ $$ = build_function_call ($1, $3); }
+ | VA_ARG '(' expr_no_commas ',' typename ')'
+ { $$ = build_va_arg ($3, groktypename ($5)); }
| primary '[' expr ']' %prec '.'
{ $$ = build_array_ref ($1, $3); }
| primary '.' identifier