[Bug c++/58037] sizeof... accepted only in some contexts

2013-07-31 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58037 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/58037] sizeof... accepted only in some contexts

2013-07-31 Thread nmm1 at cam dot ac.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58037 --- Comment #2 from Nick Maclaren --- Thanks. That's simpler than my workaround.

[Bug c++/58037] sizeof... accepted only in some contexts

2013-07-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58037 --- Comment #1 from Jonathan Wakely --- 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...(D

[Bug c++/58037] sizeof... accepted only in some contexts

2013-07-31 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58037 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Status|UNCONF