This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]