diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-06-29 16:02:04 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-06-29 16:02:04 -0400 |
commit | fd8a1be04d4cdbfefea457b99ed8404d77b35dd6 (patch) | |
tree | a70922d9f50369d258b60c20741981d10b509240 /gcc/tree-vect-patterns.cc | |
parent | 070a6bf0bdc6761ad77ac97404c98f00a7007d54 (diff) | |
download | gcc-fd8a1be04d4cdbfefea457b99ed8404d77b35dd6.zip gcc-fd8a1be04d4cdbfefea457b99ed8404d77b35dd6.tar.gz gcc-fd8a1be04d4cdbfefea457b99ed8404d77b35dd6.tar.bz2 |
c++: unpropagated CONSTRUCTOR_MUTABLE_POISON [PR110463]
Here we're incorrectly accepting the mutable member accesses because
cp_fold neglects to propagate CONSTRUCTOR_MUTABLE_POISON when folding a
CONSTRUCTOR.
PR c++/110463
gcc/cp/ChangeLog:
* cp-gimplify.cc (cp_fold) <case CONSTRUCTOR>: Propagate
CONSTRUCTOR_MUTABLE_POISON.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/constexpr-mutable6.C: New test.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions