C++ cleanups before C++17 noexcept in types.
authorJason Merrill <jason@redhat.com>
Mon, 7 Nov 2016 23:09:21 +0000 (18:09 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 7 Nov 2016 23:09:21 +0000 (18:09 -0500)
commit452811eb53e9c0457f99f4f23a4ca10354c088e1
treeef83934093b77ac1811c1e96ea216bb5a580699a
parent4ab71abd2650621b8de283e326fda9cad2669787
C++ cleanups before C++17 noexcept in types.

* call.c (standard_conversion): Reorganize pointer conversions.
* pt.c (convert_nontype_argument_function): Convert to ref here.
(convert_nontype_argument): Not here.
(convert_template_argument): Add original type to error message.
(RECUR_AND_CHECK_FAILURE): Remove trailing semicolon.
(unify): Compare function-qualifiers.
* typeck.c (same_type_ignoring_top_level_qualifiers_p): Use
cp_build_qualified_type rather than TYPE_MAIN_VARIANT.

From-SVN: r241943
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/template/func2.C