public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55232] New: [C++0x] Compilation fails if expanding function param pack in initializer_list
@ 2012-11-07 13:37 breakpoint at f5soft dot com
  2012-11-07 13:46 ` [Bug c++/55232] " paolo.carlini at oracle dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: breakpoint at f5soft dot com @ 2012-11-07 13:37 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55232
           Summary: [C++0x] Compilation fails if expanding function param
                    pack in initializer_list
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: breakpoint@f5soft.com


Compilation of following source code gives error message:

"Compiling: main.cpp
'
in dependent_type_p, at cp/pt.c:19321"

Source code:

#include <vector>
#include <list>

using namespace std;

template< class... T >
struct X : T...
{
    void push_back( typename T::value_type ... vals )
    {
        initializer_list<int> li = { (T::push_back(vals), 1)... };  //Fail
    }
};

int main()
{
    X< vector<double>, list<int> > x;
    x.push_back(1.1, 2);
    return 0;
}


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

end of thread, other threads:[~2013-02-15 11:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07 13:37 [Bug c++/55232] New: [C++0x] Compilation fails if expanding function param pack in initializer_list breakpoint at f5soft dot com
2012-11-07 13:46 ` [Bug c++/55232] " paolo.carlini at oracle dot com
2012-11-07 13:52 ` [Bug c++/55232] [C++11] " redi at gcc dot gnu.org
2012-11-07 13:54 ` 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

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