PR c++/83186 - ICE with static_cast of list-initialized temporary.
commita6ab30a541aae136f5d3574ebb4554eb4e85b814
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2018 19:40:11 +0000 (12 19:40 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2018 19:40:11 +0000 (12 19:40 +0000)
treee198262c19309348f8b609a31d775b3d7ed78321
parentd3e9b3e9990221a5733d8d6feb3c24b682f99f4f
PR c++/83186 - ICE with static_cast of list-initialized temporary.

* typeck.c (build_static_cast): Use build_non_dependent_expr.

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