public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55232] [C++11] Compilation fails if expanding function param pack in initializer_list Date: Wed, 07 Nov 2012 13:52:00 -0000 [thread overview] Message-ID: <bug-55232-4-r8mg3ZcgMZ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-55232-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55232 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|RESOLVED |NEW Last reconfirmed| |2012-11-07 Known to work|4.7.2, 4.8.0 | Resolution|WORKSFORME | Summary|[C++0x] Compilation fails |[C++11] Compilation fails |if expanding function param |if expanding function param |pack in initializer_list |pack in initializer_list Ever Confirmed|0 |1 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-07 13:52:34 UTC --- It only fails with warnings enabled. Reduced: struct vector { typedef double value_type; int push_back() { return 0; } }; template< class... T > struct X : T... { void push_back( typename T::value_type ... vals ) { int li[] = { T::push_back()... }; //Fail } }; int main() { X< vector > x; x.push_back(2); return 0; }
next prev parent reply other threads:[~2012-11-07 13:52 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-11-07 13:37 [Bug c++/55232] New: [C++0x] " breakpoint at f5soft dot com 2012-11-07 13:46 ` [Bug c++/55232] " paolo.carlini at oracle dot com 2012-11-07 13:52 ` redi at gcc dot gnu.org [this message] 2012-11-07 13:54 ` [Bug c++/55232] [C++11] " redi at gcc dot gnu.org 2012-11-07 14:00 ` paolo.carlini at oracle dot com 2012-11-07 14:03 ` redi at gcc dot gnu.org 2012-11-07 14:08 ` [Bug c++/55232] [C++11] ICE with -Wunused-parameter for unused parameter pack using qualified dependent name redi at gcc dot gnu.org 2012-11-07 14:08 ` redi at gcc dot gnu.org 2012-11-07 14:21 ` paolo.carlini at oracle dot com 2013-02-14 14:03 ` jason at gcc dot gnu.org 2013-02-15 1:26 ` jason at gcc dot gnu.org 2013-02-15 11:20 ` 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-55232-4-r8mg3ZcgMZ@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).