https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261
--- Comment #4 from Jonathan Wakely ---
The FE already has to do lookup for s in that initializer, so it knows that
another member was found.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261
--- Comment #3 from Jonathan Wakely ---
(In reply to Richard Biener from comment #2)
> In fact with trunk we diagnose this properly with -std=c++17 but not
> -std=c++20.
So it's probably because c++17 uses extern template for std::string and
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261
Richard Biener changed:
What|Removed |Added
CC||hubicka at gcc dot gnu.org
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261
Richard Biener changed:
What|Removed |Added
Keywords||diagnostic
Ever confirmed|0