]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: attribute on dtor in template [PR108795]
authorJason Merrill <jason@redhat.com>
Tue, 21 Mar 2023 19:15:27 +0000 (15:15 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 21 Apr 2023 20:48:01 +0000 (16:48 -0400)
commit1c1a9a0b60a9a182bcff79084e5ac367a6329bc2
tree179ff02de0fab7267865cbe1e1d88287fb51e45b
parent8caf5805ad76125b84430b8653003f4776489d46
c++: attribute on dtor in template [PR108795]

Since r7-2549 we were throwing away the explicit C:: when we found that ~C
has an attribute that we treat as making its type dependent.

PR c++/108795

gcc/cp/ChangeLog:

* semantics.cc (finish_id_expression_1): Check scope before
returning id_expression.

gcc/testsuite/ChangeLog:

* g++.dg/ext/attr-tsafe1.C: New test.
gcc/cp/semantics.cc
gcc/testsuite/g++.dg/ext/attr-tsafe1.C [new file with mode: 0644]