diff options
author | Jason Merrill <jason@redhat.com> | 2023-03-23 16:50:09 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-03-23 17:38:29 -0400 |
commit | c4792bd1de0621932a47fb86aca09fafafdb2972 (patch) | |
tree | f6d57832dfe5d9b6f4f015331245cecac41c42bc /gcc/go/go-gcc.cc | |
parent | 3fbeff66684d95417646aaa22d0a8f1ec9786299 (diff) | |
download | gcc-c4792bd1de0621932a47fb86aca09fafafdb2972.zip gcc-c4792bd1de0621932a47fb86aca09fafafdb2972.tar.gz gcc-c4792bd1de0621932a47fb86aca09fafafdb2972.tar.bz2 |
c++: constexpr PMF conversion [PR105996]
Here, we were calling build_reinterpret_cast regardless of whether there was
actually a cast, and that now sets REINTERPRET_CAST_P. But that
optimization seems dodgy anyway, as it involves NOP_EXPR from one
RECORD_TYPE to another and we try to reserve NOP_EXPR for fundamental types.
And the generated code seems the same, so let's drop it. And also strip
location wrappers.
PR c++/105996
gcc/cp/ChangeLog:
* typeck.cc (build_ptrmemfunc): Drop 0-offset optimization
and location wrappers.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/constexpr-pmf3.C: New test.
Diffstat (limited to 'gcc/go/go-gcc.cc')
0 files changed, 0 insertions, 0 deletions