[Bug c++/70528] [5/6 Regression] bogus error: constructor required before non-static data member
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 4 14:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70528
--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #5)
> If comment #1 should be accepted, then should this be accepted too?
>
> template <class T, class U = decltype(T())>
> struct I {
> };
>
> struct J {
> struct K {
> int First = J::N;
> };
> I<K> FunctionMDInfo;
> static const int N = 0;
> };
Clang rejects both.
More information about the Gcc-bugs
mailing list