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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 13 14:09:00 GMT 2011


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 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



More information about the Gcc-bugs mailing list