% cat t.cpp
#include <utility>
void test()
        void* p = 0;
        int i = 0;
        std::make_pair< void*, int >( p, i );

% make
t.cpp -c -std=gnu++0x -o /dev/null
t.cpp: In function 'void test()':
t.cpp:6:37: error: no matching function for call to 'make_pair(void*&, int&)'

btw. comeau accepts this code.

           Summary: [c++0x] reject valid? no matching function for call to
                    'make_pair(void*&, int&)'
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: x86_64-gnu-linux
  GCC host triplet: x86_64-gnu-linux
GCC target triplet: x86_64-gnu-linux


Reply via email to