% cat t.cpp #include <utility> void test() { void* p = 0; int i = 0; std::make_pair< void*, int >( p, i ); }
% make /local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/bin/x86_64-gnu-linux-g++ 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 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45537