public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50478] [C++0x] Internal compiler error when using initializer lists Date: Wed, 21 Dec 2011 12:56:00 -0000 [thread overview] Message-ID: <bug-50478-4-1mSnZl11hY@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-50478-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50478 --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-21 12:43:38 UTC --- This is a more correct testcase, which also preserves the property of OT that -pedantic works around the issue. Note: removing the string constructor taking an initializer_list also works around the problem: /////////////////// #include <initializer_list> namespace std { template<typename _Key> struct set { void insert(const _Key&); void insert(initializer_list<_Key>); }; struct string { string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1); string(const char*); string(initializer_list<char>); }; } int main() { std::set<std::string> s; s.insert( { "abc", "def", "hij"} ); }
next prev parent reply other threads:[~2011-12-21 12:44 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-09-22 7:19 [Bug c++/50478] New: " bitti at iki dot fi 2011-09-22 7:29 ` [Bug c++/50478] " daniel.kruegler at googlemail dot com 2011-09-22 9:40 ` [Bug c++/50478] [C++0x] " paolo.carlini at oracle dot com 2011-09-22 9:56 ` paolo.carlini at oracle dot com 2011-12-21 11:39 ` paolo.carlini at oracle dot com 2011-12-21 12:28 ` paolo.carlini at oracle dot com 2011-12-21 12:56 ` paolo.carlini at oracle dot com [this message] 2012-04-18 10:37 ` paolo.carlini at oracle dot com 2012-10-10 9:01 ` paolo.carlini at oracle dot com 2012-10-10 9:12 ` paolo at gcc dot gnu.org 2012-10-10 9:13 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-50478-4-1mSnZl11hY@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).