Re: [PATCH] PR libstdc++/87822 fix layout change for nested std::pair

2018-10-31 Thread Jonathan Wakely
On 31/10/18 12:31 +, Jonathan Wakely wrote: The introduction of the empty __pair_base base class for PR 86751 changed the layout of std::pair, ...>. The outer pair and its first member both have a base class of the same type, which cannot exist at the same address. This causes the first membe

[PATCH] PR libstdc++/87822 fix layout change for nested std::pair

2018-10-31 Thread Jonathan Wakely
The introduction of the empty __pair_base base class for PR 86751 changed the layout of std::pair, ...>. The outer pair and its first member both have a base class of the same type, which cannot exist at the same address. This causes the first member to be at a non-zero offset. The solution is to