[Bug c++/96716] GCC reports "object is private" when it's accessed through proper accessor

2020-08-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96716 --- Comment #2 from Jonathan Wakely --- Slightly further reduced: struct string_view { constexpr string_view(const char* p) : p(p) { } const char* p; }; struct Foo { constexpr string_view getfoo() const { return {}; } private:

[Bug c++/96716] GCC reports "object is private" when it's accessed through proper accessor

2020-08-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96716 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|