http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58037

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The compiler only rejects it when the member is non-static and uses = for the
initializer.

As a workaround you can use a braced-init-list as the initializer for the
member:

    const int rank { sizeof...(Dims) };

Reply via email to