PR c++/83186 - ICE with static_cast of list-initialized temporary.
authorJason Merrill <jason@redhat.com>
Fri, 12 Jan 2018 19:40:11 +0000 (14:40 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 12 Jan 2018 19:40:11 +0000 (14:40 -0500)
commitabdca01e866a9471d43a7b21980b71ba9657a1fe
treee198262c19309348f8b609a31d775b3d7ed78321
parentb84619155e8f8537140aae55ab53125cafa8bc6c
PR c++/83186 - ICE with static_cast of list-initialized temporary.

* typeck.c (build_static_cast): Use build_non_dependent_expr.

From-SVN: r256594
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/initlist-cast1.C [new file with mode: 0644]