[Bug c++/90880] compile error instead of SFINAE with non-public member variables
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 13 23:59:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90880
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-06-13
Ever confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Federico Kircheis from comment #1)
> After researching a little bit more, I've convinced myself that
> `status<c1>::value` should be false, as `decltype` has no special rules for
> accessing private data, thus clang is correct.
Agreed. And G++ should accept it.
More information about the Gcc-bugs
mailing list