https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60799
TC <rs2740 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rs2740 at gmail dot com --- Comment #4 from TC <rs2740 at gmail dot com> --- (In reply to Casey Carter from comment #3) > > I'm inclined to the second interpretation, which would imply the behavior > > described in this bug report is what the standard intends. > > This is me stumbling over my words attempting to say "I think this is NOT a > bug." I don't think that reading makes much sense. Among member-declarations that do not declare a member are static_assert-declarations and unnamed bit-field declarations, so that reading disallows class A { constexpr static bool value = true; friend class B; }; class B { static_assert(B::value, ""); }; And disallows D in the below example but not E: class C { constexpr static int value = 4; friend class D; friend class E; }; class D { int : C::value; }; class E { int i : C::value; };