[C++ PATCH] operator name cleanup prepatch
commite2665e8b489174aff34d144e2354b9070f710d99
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Oct 2017 19:04:53 +0000 (30 19:04 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Oct 2017 19:04:53 +0000 (30 19:04 +0000)
treecf00bde39e4174f28857d66ad2019885c457b8c7
parentb86a5e47ed462174d574ea0e77a13472b8522ce4
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254238 138bc75d-0d04-0410-961f-82ee72b054a4
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