diff options
author | Jason Merrill <jason@redhat.com> | 2020-06-16 00:19:53 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-06-17 15:08:42 -0400 |
commit | 14c831f5ef614aabb6a8c85712fb166600e6cc05 (patch) | |
tree | 77518af0424598f7533f1eff7f30a44bae69c995 /gcc/cp/class.c | |
parent | da2c9054f1596b71e3c81efd62b6cef348e445b4 (diff) | |
download | gcc-14c831f5ef614aabb6a8c85712fb166600e6cc05.zip gcc-14c831f5ef614aabb6a8c85712fb166600e6cc05.tar.gz gcc-14c831f5ef614aabb6a8c85712fb166600e6cc05.tar.bz2 |
c++: Fix consteval operator handling.
We were crashing trying to find the CALL_EXPR in the result of a call to a
consteval operator.
gcc/cp/ChangeLog:
* call.c (build_new_op_1): Don't look for a CALL_EXPR when
calling a consteval function.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/consteval17.C: New test.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions