public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "lucdanton at free dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66336] New: [C++14][Variable templates] Spurious "error: expansion pattern contains no argument packs"
Date: Fri, 29 May 2015 09:16:00 -0000	[thread overview]
Message-ID: <bug-66336-4@http.gcc.gnu.org/bugzilla/> (raw)

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>... };


             reply	other threads:[~2015-05-29  9:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29  9:16 lucdanton at free dot fr [this message]
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

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-66336-4@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: link
Be 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).