Fix default argument conversion failure and SFINAE.
commit0386bbeeffe4eba393057ac36c83b60c16dd4502
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Aug 2017 19:39:18 +0000 (29 19:39 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Aug 2017 19:39:18 +0000 (29 19:39 +0000)
tree8d6bd959531218d3f5f3c7303607ecfb61291bde
parent762696920bbee2d6165b4ddf7386fb9f5b81e760
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.

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