public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" @ 2015-05-29 9:16 lucdanton at free dot fr 2015-08-05 15:31 ` [Bug c++/66336] " jason at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: lucdanton at free dot fr @ 2015-05-29 9:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66336 Bug ID: 66336 Summary: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lucdanton at free dot fr Target Milestone: --- Created attachment 35651 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35651&action=edit Minimal testcase $ g++-trunk --version g++-trunk (GCC) 5.1.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat main.cpp template<typename> int i {}; template<typename... Xs> void f() { // error: expansion pattern 'i<Xs>' contains no argument packs int is[] = { i<Xs>... }; } int main() { f<void, void, void>(); } $ g++-trunk -std=c++14 main.cpp main.cpp: In function 'void f()': main.cpp:8:23: error: expansion pattern 'i<Xs>' contains no argument packs int is[] = { i<Xs>... }; ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66336] [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" 2015-05-29 9:16 [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" lucdanton at free dot fr @ 2015-08-05 15:31 ` jason at gcc dot gnu.org 2015-08-05 15:32 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-08-05 15:31 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66336 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2015-08-05 CC| |jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed on the trunk by r225692. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66336] [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" 2015-05-29 9:16 [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" lucdanton at free dot fr 2015-08-05 15:31 ` [Bug c++/66336] " jason at gcc dot gnu.org @ 2015-08-05 15:32 ` jason at gcc dot gnu.org 2015-08-06 4:10 ` jason at gcc dot gnu.org 2015-08-06 4:13 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-08-05 15:32 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66336 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ldionne.2 at gmail dot com --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- *** Bug 65706 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66336] [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" 2015-05-29 9:16 [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" lucdanton at free dot fr 2015-08-05 15:31 ` [Bug c++/66336] " jason at gcc dot gnu.org 2015-08-05 15:32 ` jason at gcc dot gnu.org @ 2015-08-06 4:10 ` jason at gcc dot gnu.org 2015-08-06 4:13 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-08-06 4:10 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66336 --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Aug 6 04:09:49 2015 New Revision: 226655 URL: https://gcc.gnu.org/viewcvs?rev=226655&root=gcc&view=rev Log: PR c++/66336 * pt.c (find_parameter_packs_r): Handle variable templates. (variable_template_specialization_p): New. * cp-tree.h: Declare it. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ33.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/cp-tree.h branches/gcc-5-branch/gcc/cp/pt.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66336] [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" 2015-05-29 9:16 [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" lucdanton at free dot fr ` (2 preceding siblings ...) 2015-08-06 4:10 ` jason at gcc dot gnu.org @ 2015-08-06 4:13 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-08-06 4:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66336 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |5.3 --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed for 5.3. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-06 4:13 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-05-29 9:16 [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs" lucdanton at free dot fr 2015-08-05 15:31 ` [Bug c++/66336] " jason at gcc dot gnu.org 2015-08-05 15:32 ` jason at gcc dot gnu.org 2015-08-06 4:10 ` jason at gcc dot gnu.org 2015-08-06 4:13 ` jason at gcc dot gnu.org
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).