public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "oakad at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53137] [4.7/4.8 Regression] g++ segfault Date: Thu, 29 Nov 2012 15:32:00 -0000 [thread overview] Message-ID: <bug-53137-4-xhbO0A4atJ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53137-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53137 Alexander Dubov <oakad at yahoo dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |oakad at yahoo dot com --- Comment #14 from Alexander Dubov <oakad at yahoo dot com> 2012-11-29 15:31:46 UTC --- Because this bug is so annoying, I thought it may be helpful if I add an another example: (clang-3.1 works in all cases) template <typename value_type> struct test { test(std::initializer_list<value_type> l) { insert(l.begin(), l.end()); } template <typename input_iter_t> void insert(input_iter_t first, input_iter_t last) { std::for_each( first, last, [this](value_type const &v) -> void { // works on both gcc-4.6.3 and gcc-4.7.2 this->insert(v); // won't compile on 4.6.3, // ICE at tree-ssa-operands.c:1035 on 4.7.2 insert(v); } ); } void insert(value_type const &v) { std::cout << v << std::endl; } };
next prev parent reply other threads:[~2012-11-29 15:32 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-04-27 9:22 [Bug c++/53137] New: " valery.bickov at gmail dot com 2012-04-27 10:42 ` [Bug c++/53137] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org 2012-05-23 12:36 ` jakub at gcc dot gnu.org 2012-05-29 14:18 ` rguenth at gcc dot gnu.org 2012-05-31 21:31 ` jason at gcc dot gnu.org 2012-06-01 16:55 ` jason at gcc dot gnu.org 2012-06-01 18:43 ` jason at gcc dot gnu.org 2012-06-01 18:47 ` jason at gcc dot gnu.org 2012-06-12 15:01 ` jason at gcc dot gnu.org 2012-06-12 15:06 ` jason at gcc dot gnu.org 2012-06-20 7:22 ` jason at gcc dot gnu.org 2012-09-26 11:12 ` valery.bickov+gcc at gmail dot com 2012-09-26 11:35 ` rguenth at gcc dot gnu.org 2012-11-02 11:51 ` paolo.carlini at oracle dot com 2012-11-02 11:52 ` paolo.carlini at oracle dot com 2012-11-19 14:59 ` paolo.carlini at oracle dot com 2012-11-29 15:32 ` oakad at yahoo dot com [this message] 2012-11-29 15:37 ` paolo.carlini at oracle dot com 2012-11-29 20:13 ` jason at gcc dot gnu.org 2012-11-29 20:18 ` jason at gcc dot gnu.org 2012-11-29 20:29 ` jason at gcc dot gnu.org 2012-11-29 22:20 ` paolo.carlini at oracle dot com 2013-01-03 16:22 ` paolo.carlini at oracle dot com 2013-02-12 14:41 ` paolo.carlini at oracle dot com 2013-02-13 10:40 ` paolo.carlini at oracle dot com 2013-02-20 23:27 ` paolo.carlini at oracle dot com 2013-03-16 13:04 ` 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-53137-4-xhbO0A4atJ@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).