Fix default argument conversion failure and SFINAE.
authorJason Merrill <jason@redhat.com>
Tue, 29 Aug 2017 19:39:18 +0000 (15:39 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Aug 2017 19:39:18 +0000 (15:39 -0400)
commit1aeafba210c4796bde79d4d06e05c96a153b8fb5
tree8d6bd959531218d3f5f3c7303607ecfb61291bde
parenta2aa807ef9537ab75e81dd0470e90f5a54d75031
Fix default argument conversion failure and SFINAE.

* call.c (build_over_call): Check convert_default_arg result for
error_mark_node.
* parser.c (cp_parser_late_parsing_default_args): Remember
error_mark_node.

From-SVN: r251421
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/parser.c
gcc/testsuite/g++.dg/ext/is_constructible1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/new1.C
gcc/testsuite/g++.dg/parse/crash40.C
gcc/testsuite/g++.dg/parse/defarg12.C
gcc/testsuite/g++.dg/template/error15.C