PR c++/82360 - ICE with static_cast in template.
authorJason Merrill <jason@redhat.com>
Mon, 13 Nov 2017 21:49:16 +0000 (16:49 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 13 Nov 2017 21:49:16 +0000 (16:49 -0500)
commitc360a6681734fcde601f260b02e69bda13d14085
tree0994684b16f8526820ca22aaafcdfe10a126c8d2
parentfb771b9dad6ef78a985353128cea48e620eb4324
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.

From-SVN: r254710
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/template/cast5.C [new file with mode: 0644]