diff options
author | Jason Merrill <jason@redhat.com> | 2022-09-06 14:18:39 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-09-06 16:20:41 -0400 |
commit | 0a2fba3697411c07a8330abfe7460ce62bce5e7f (patch) | |
tree | 12fda6644d4eba70bc673e621d8c5d37764aeaf4 /gcc/tree-vectorizer.h | |
parent | 0a4a2667dc115ca73b552fcabf8570620dfbe55f (diff) | |
download | gcc-0a2fba3697411c07a8330abfe7460ce62bce5e7f.zip gcc-0a2fba3697411c07a8330abfe7460ce62bce5e7f.tar.gz gcc-0a2fba3697411c07a8330abfe7460ce62bce5e7f.tar.bz2 |
c++: C++23 operator[] allows default arguments
This usage was intended to be allowed by P2128, but it didn't make it into
the final wording. Fixed by CWG 2507.
DR2507
gcc/cp/ChangeLog:
* decl.cc (grok_op_properties): Return sooner for C++23 op[].
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/subscript8.C: New test.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions