]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Update const_decl handling after r15-7259 [PR118673].
authorIain Sandoe <iains.gcc@gmail.com>
Thu, 30 Jan 2025 08:19:21 +0000 (08:19 +0000)
committerJason Merrill <jason@redhat.com>
Thu, 27 Feb 2025 10:34:09 +0000 (05:34 -0500)
commit19bf2732ae4ad0c37c2493e82cc500724de746a8
tree82e10d9e249c143806d3669c0bb7a8293a55470a
parentb4f66a79e0c9b65d78aed6c982bdcff48ed098d5
c++: Update const_decl handling after r15-7259 [PR118673].

Objective-C++ uses CONST_DECLs to hold constant string objects
these should also be treated as mergable lvalues.

PR c++/118673

gcc/cp/ChangeLog:

* tree.cc (lvalue_kind): Mark CONST_DECLs as mergable
when they are also TREE_STATIC.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/cp/tree.cc