Home Dashboard Directory Help
Search

Internal compiler error when using argument-dependent lookup on std::make_pair by D. Golub


Status: 

Closed
 as Fixed Help for as Fixed


3
0
Sign in
to vote
Type: Bug
ID: 808089
Opened: 11/8/2013 8:17:02 AM
Access Restriction: Public
1
Workaround(s)
view
1
User(s) can reproduce this bug

Description

The following code produces an internal compiler error when compiled with Visual Studio 2013:

#include <string>

int main()
{
make_pair(std::string(), make_pair(0, 0)));
return 0;
}
Details
Sign in to post a comment.
Posted by Microsoft on 12/18/2013 at 5:09 PM
Hi:
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next major release of Visual C++.
    Note that the code is ill-formed. Only the first 'make_pair' can be found using ADL.

Xiang Fan
Visual C++ Team
Posted by Microsoft on 11/10/2013 at 10:42 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 11/8/2013 at 8:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by UnitUniverse on 11/15/2013 at 8:22 PM
1) Supplement 'using namespace std;' before the function 'main'.
2) Use 'std::make_pair(std::string(), std::make_pair(0, 0));' instead.