re PR c++/84942 (internal compiler error: in fold_convert_const_int_from_real, at...
authorJakub Jelinek <jakub@redhat.com>
Fri, 23 Mar 2018 20:54:01 +0000 (21:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 23 Mar 2018 20:54:01 +0000 (21:54 +0100)
commitc1e7c3f2015247369b040a3ab24e85d4d68f51f4
tree8c62f65ddb392d2bbbc1fe7f08ce9b0e93e0c573
parenta426543a1f31388186edb92036a87032c66bcd17
re PR c++/84942 (internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011)

PR c++/84942
* pt.c (tsubst_copy_and_build) <case FIX_TRUNC_EXPR>: Replace
cp_build_unary_op call with gcc_unreachable ().

* g++.dg/cpp1y/pr84942.C: New test.

From-SVN: r258821
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr84942.C [new file with mode: 0644]