aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-07-20 16:00:02 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-07-20 16:00:02 +0200
commit109d2197c31b766daf9c7b138bc7eeaab12985df (patch)
treeb4130392d26901052d9c0f2e7c70f90f8177f8c5 /gcc/expr.c
parent2d06ca74a23cc87d2edc983f24a196a815af1c01 (diff)
downloadgcc-109d2197c31b766daf9c7b138bc7eeaab12985df.zip
gcc-109d2197c31b766daf9c7b138bc7eeaab12985df.tar.gz
gcc-109d2197c31b766daf9c7b138bc7eeaab12985df.tar.bz2
re PR middle-end/50060 (intrinsics not folded by the middle-end)
PR c++/50060 * constexpr.c (cxx_eval_builtin_function_call): Pass false as lval when evaluating call arguments. Use fold_builtin_call_array instead of fold_build_call_array_loc, return t if it returns NULL. Otherwise check the result with potential_constant_expression and call cxx_eval_constant_expression on it. * g++.dg/cpp0x/constexpr-50060.C: New test. * g++.dg/cpp1y/constexpr-50060.C: New test. From-SVN: r238520
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions