Open
Description
Environment
- OS and Version: macOS 15.4.1
- VS Code Version: 1.99.3 (Universal)
- C/C++ Extension Version: 1.25.3
- If using SSH remote, specify OS of remote machine: N/A
Bug Summary and Steps to Reproduce
Bug Summary: namespace "std" has no member "make_pair"
Two minimal reproducible files:
c_cpp_properties.json:
{
"configurations": [
{
"name": "macos",
"intelliSenseMode": "macos-clang-x64",
"compilerPath": "/usr/bin/clang++",
"cppStandard": "c++11"
}
],
"version": 4
}
foo.cc
#include <utility>
int main()
{
auto f = std::make_pair("foo", 1);
return 0;
}
Expected behavior: Nothing error
Configuration and Logs
-------- Diagnostics - 5/4/2025, 7:53:31 PM
Version: 1.25.3
Current Configuration:
{
"name": "macos",
"intelliSenseMode": "macos-clang-x64",
"compilerPath": "/usr/bin/clang++",
"cppStandard": "c++11",
"compilerPathIsExplicit": true,
"cStandardIsExplicit": false,
"cppStandardIsExplicit": true,
"intelliSenseModeIsExplicit": true,
"recursiveIncludesReduceIsExplicit": false,
"recursiveIncludesPriorityIsExplicit": false,
"recursiveIncludesOrderIsExplicit": false,
"compilerPathInCppPropertiesJson": "/usr/bin/clang++",
"mergeConfigurations": false,
"recursiveIncludes": {},
"browse": {
"limitSymbolsToIncludedHeaders": true
}
}
Additional Tracked Settings:
{
"editorTabSize": 4,
"editorInsertSpaces": true,
"editorAutoClosingBrackets": "languageDefined",
"filesEncoding": "utf8",
"filesAssociations": {},
"filesExclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"filesAutoSaveAfterDelay": false,
"editorInlayHintsEnabled": true,
"editorParameterHintsEnabled": true,
"searchExclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true
},
"workbenchSettingsEditor": "ui"
}
cpptools version (native): 1.25.3.0
Current database path: /Users/zinc/Library/Caches/vscode-cpptools/c265f3ad386351988d8814bd5f02594f/.browse.VC.db
Translation Unit Mappings:
[ /Users/zinc/Workspace/baz/foo.cc - source TU]:
Translation Unit Configurations:
[ /Users/zinc/Workspace/baz/foo.cc ]
Process ID: 20019
Memory Usage: 15 MB
Compiler Path: /usr/bin/clang++
Include paths:
system include: /usr/local/include
system include: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1
system include: /Library/Developer/CommandLineTools/usr/lib/clang/17/include
system include: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
system include: /Library/Developer/CommandLineTools/usr/include
system framework search path (default): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
Standard Version: c++11
IntelliSense Mode: macos-clang-x64
Other Flags:
--clang
--clang_version=170006
Total Memory Usage: 15 MB
------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 12197
Other Extensions
No response
Additional context
No response
Metadata
Metadata
Assignees
Type
Projects
Status
No status