c++: [[no_unique_address]] and virtual base [PR104139]
authorJason Merrill <jason@redhat.com>
Fri, 21 Jan 2022 16:16:49 +0000 (11:16 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 21 Jan 2022 17:06:18 +0000 (12:06 -0500)
commit23be9f83bbd2c6f03580757adbfe599de6bf702b
tree93937d4a30606234ded38f014574e638855c8354
parent45cae5b6392496028f35c5948f7fae0af81d135b
c++: [[no_unique_address]] and virtual base [PR104139]

Fixing a thinko in my patch for 103681: when computing the size of a virtual
base, it would help to use its binfo instead of the one for the derived
class.

PR c++/104139
PR c++/103681

gcc/cp/ChangeLog:

* class.cc (end_of_class): Use base_binfo.

gcc/testsuite/ChangeLog:

* g++.dg/abi/no_unique_address2.C: Adjust to detect this on x86-64.
gcc/cp/class.cc
gcc/testsuite/g++.dg/abi/no_unique_address2.C