[C++ PATCH] operator name cleanup prepatch
authorNathan Sidwell <nathan@acm.org>
Mon, 30 Oct 2017 19:04:53 +0000 (19:04 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 30 Oct 2017 19:04:53 +0000 (19:04 +0000)
commitff6304874e9f0c56ef675deb7f71124348fae922
treecf00bde39e4174f28857d66ad2019885c457b8c7
parentb832b29f6578d3171e41d084b7a8432a24c5bf62
[C++ PATCH] operator name cleanup prepatch

https://gcc.gnu.org/ml/gcc-patches/2017-10/msg02240.html
cp/
* call.c (build_op_call_1): Test for FUNCTION_DECL in same manner
as a few lines earlier.
* cp-tree.h (PACK_EXPANSION_PATTERN): Fix white space.
* decl.c (grokfndecl): Fix indentation.
(compute_array_index_type): Use processing_template_decl_sentinel.
(grok_op_properties): Move warnings to end.  Reorder other checks
to group similar entities.  Tweak diagnostics.
* lex.c (unqualified_name_lookup_error): No need to check name is
not ERROR_MARK operator.
* parser.c (cp_parser_operator): Select operator code before
looking it up.
* typeck.c (check_return_expr): Fix indentation and line wrapping.

testsuite/

* g++.dg/other/operator2.C: Adjust diagnostic.
* g++.old-deja/g++.jason/operator.C: Likewise.

From-SVN: r254238
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/lex.c
gcc/cp/parser.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/operator2.C
gcc/testsuite/g++.old-deja/g++.jason/operator.C