The attached .cpp file crashes the compiler when compiling for debug mode.
1>------ Rebuild All started: Project: ConsoleApplication2, Configuration: Debug Win32 ------
1>c:\users\petter.strandmark\desktop\scope.cpp(14): fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 227)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
If the braces in the first return statement are changed to std::make_pair, the error disappears.