http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50075
--- Comment #3 from Jonathan Wakely 2011-08-13
15:42:06 UTC ---
ah, sorry, I didn't check our impl - so then it should work, just isn't
portable
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50075
--- Comment #2 from Kerrek SB 2011-08-13 14:09:20
UTC ---
Indeed, according to the FDIS size() is *not* constexpr, but I had initially
just checked the GCC implementation, in which it *is* declared as constexpr!
(This is in "c++/4.6.1/initializer
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50075
--- Comment #1 from Jonathan Wakely 2011-08-13
14:00:45 UTC ---
obviously it shouldn't crash, but what you're trying won't work, because
initializer_list::size is not constexpr, so il.size() is not a constant
expression