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

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).