[Bug c++/50075] ICE related to parameter deduction and initializer_list

2011-08-13 Thread redi at gcc dot gnu.org
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

[Bug c++/50075] ICE related to parameter deduction and initializer_list

2011-08-13 Thread z0sh at sogetthis dot com
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

[Bug c++/50075] ICE related to parameter deduction and initializer_list

2011-08-13 Thread redi at gcc dot gnu.org
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