]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/52748 ([C++11] N3276 changes to decltype)
authorJason Merrill <jason@redhat.com>
Thu, 11 Apr 2013 19:51:52 +0000 (15:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 11 Apr 2013 19:51:52 +0000 (15:51 -0400)
commite59baf0517ed782d3dfe8ae0d93c6b877e664447
treecf1aa9cecbf228591a7c53d99bdc51da8621d751
parent43a8d6ccf2142b8128e659b14842f50cf2fa48b2
re PR c++/52748 ([C++11] N3276 changes to decltype)

PR c++/52748
* parser.c (complain_flags): New.
(cp_parser_postfix_expression): Use it.
(cp_parser_unary_expression): Likewise.
(cp_parser_binary_expression): Likewise.
(cp_parser_assignment_expression): Likewise.
(cp_parser_expression): Likewise.
(cp_parser_postfix_open_square_expression): Take decltype_p.
(cp_parser_builtin_offsetof): Adjust.
(cp_convert_range_for): Pass complain to finish_unary_op_expr.
* semantics.c (finish_unary_op_expr): Add complain parm.

From-SVN: r197826
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/decltype-call3.C [new file with mode: 0644]