[Bug libstdc++/87520] [8/9 Regression] ODR violations in std::make_shared when mixing -fno-rtti and -frtti

gcc@axel-naumann.de gcc-bugzilla@gcc.gnu.org
Fri Oct 19 14:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87520

--- Comment #3 from Axel Naumann <gcc@axel-naumann.de> ---
(In reply to Jonathan Wakely from comment #1)
> A possible (partial) fix would be:
> 
> --- a/libstdc++-v3/include/bits/shared_ptr_base.h
> +++ b/libstdc++-v3/include/bits/shared_ptr_base.h

I can confirm that this also fixes our actual "in the wild" issue. I would
certainly appreciate this being included in 8.3. Thank you for the reproducer
and the suggested patch, Jonathan!


More information about the Gcc-bugs mailing list