This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50075] ICE related to parameter deduction and initializer_list
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Aug 2011 14:00:45 +0000
- Subject: [Bug c++/50075] ICE related to parameter deduction and initializer_list
- Auto-submitted: auto-generated
- References: <bug-50075-4@http.gcc.gnu.org/bugzilla/>
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