diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-04-20 15:08:02 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-04-23 15:59:54 +1000 |
commit | cf51fe706ea0219beb5bb85e81606d372ca9635e (patch) | |
tree | 38a2b2bab4a0f4f0999aa3d24d3b61de58d4cd3a /gcc/cp/method.cc | |
parent | 77e114bb0dc03d1df7f84221e3132d19030c34b4 (diff) | |
download | gcc-cf51fe706ea0219beb5bb85e81606d372ca9635e.zip gcc-cf51fe706ea0219beb5bb85e81606d372ca9635e.tar.gz gcc-cf51fe706ea0219beb5bb85e81606d372ca9635e.tar.bz2 |
c++: Check if allocation functions are xobj members [PR114078]
A class allocation member function is implicitly 'static' by
[class.free] p3, so cannot have an explicit object parameter.
PR c++/114078
gcc/cp/ChangeLog:
* decl.cc (grokdeclarator): Check allocation functions for xobj
parameters.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/explicit-obj-ops-alloc.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/cp/method.cc')
0 files changed, 0 insertions, 0 deletions