PR c++/82360 - ICE with static_cast in template.
commitc36e63fe2b701030011e6fcea3c6749dc80b591d
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Nov 2017 21:49:16 +0000 (13 21:49 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Nov 2017 21:49:16 +0000 (13 21:49 +0000)
tree0994684b16f8526820ca22aaafcdfe10a126c8d2
parent86136db8efde2401b066fee95c546365b75dce2e
PR c++/82360 - ICE with static_cast in template.

* call.c (perform_direct_initialization_if_possible): Check
processing_template_decl.
* typeck.c (build_static_cast_1): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254710 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/template/cast5.C [new file with mode: 0644]