public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49593] New: [C++0x] cannot use T{t}... as pack expansion
@ 2011-06-30 14:55 redi at gcc dot gnu.org
  2011-08-02 19:25 ` [Bug c++/49593] " jason at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-06-30 14:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49593

           Summary: [C++0x] cannot use T{t}... as pack expansion
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org
                CC: jason@gcc.gnu.org


template<typename... T>
    void f(T...)
    { }

template<typename... Args>
    static void
    g(Args&&... args)
    {
        f( static_cast<Args>(args)... );

        f( (Args)args... );

        f( Args(args)... );

        f( Args{args}... );   // ERROR
    }

int main()
{
    g(1, '2', 3.0);
}

The line marked ERROR fails, it should be equivalent to the previous statement


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/49593] [C++0x] cannot use T{t}... as pack expansion
  2011-06-30 14:55 [Bug c++/49593] New: [C++0x] cannot use T{t}... as pack expansion redi at gcc dot gnu.org
@ 2011-08-02 19:25 ` jason at gcc dot gnu.org
  2011-08-02 21:13 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-02 19:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49593

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.08.02 19:24:30
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/49593] [C++0x] cannot use T{t}... as pack expansion
  2011-06-30 14:55 [Bug c++/49593] New: [C++0x] cannot use T{t}... as pack expansion redi at gcc dot gnu.org
  2011-08-02 19:25 ` [Bug c++/49593] " jason at gcc dot gnu.org
@ 2011-08-02 21:13 ` jason at gcc dot gnu.org
  2011-08-03  1:28 ` jason at gcc dot gnu.org
  2011-08-03  1:31 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-02 21:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49593

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-02 21:09:13 UTC ---
Author: jason
Date: Tue Aug  2 21:09:08 2011
New Revision: 177214

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177214
Log:
    PR c++/49593
    * pt.c (find_parameter_packs_r): Handle CONSTRUCTOR.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic115.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/49593] [C++0x] cannot use T{t}... as pack expansion
  2011-06-30 14:55 [Bug c++/49593] New: [C++0x] cannot use T{t}... as pack expansion redi at gcc dot gnu.org
  2011-08-02 19:25 ` [Bug c++/49593] " jason at gcc dot gnu.org
  2011-08-02 21:13 ` jason at gcc dot gnu.org
@ 2011-08-03  1:28 ` jason at gcc dot gnu.org
  2011-08-03  1:31 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-03  1:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49593

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.2

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-03 01:27:41 UTC ---
Fixed for 4.6.2.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/49593] [C++0x] cannot use T{t}... as pack expansion
  2011-06-30 14:55 [Bug c++/49593] New: [C++0x] cannot use T{t}... as pack expansion redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-08-03  1:28 ` jason at gcc dot gnu.org
@ 2011-08-03  1:31 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-03  1:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49593

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-03 01:25:40 UTC ---
Author: jason
Date: Wed Aug  3 01:25:37 2011
New Revision: 177227

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177227
Log:
    PR c++/49593
    * pt.c (find_parameter_packs_r): Handle CONSTRUCTOR.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/variadic115.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/pt.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-03  1:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30 14:55 [Bug c++/49593] New: [C++0x] cannot use T{t}... as pack expansion redi at gcc dot gnu.org
2011-08-02 19:25 ` [Bug c++/49593] " jason at gcc dot gnu.org
2011-08-02 21:13 ` jason at gcc dot gnu.org
2011-08-03  1:28 ` jason at gcc dot gnu.org
2011-08-03  1:31 ` 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).