Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

C++, Array Subscript Operator, Intellicode is marking C++23 feature as error #498

@eemincetin

Description

@eemincetin

Product and Version [VS/VSCode]: VSCode, 1.82.1
OS Version [Linux]: Ubuntu 22.04
IntelliCode Extension Version: 1.2.30
Target Platform or Language [e.g. Node.js]: C++, GCC 12.1.0 x86_64-linux-gnu

c_cpp_properties.json

{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/g++-12",
"cStandard": "c17",
"cppStandard": "c++23",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}

Steps to Reproduce / Scenario:

  1. ms-vscode.cmake-tools
  2. compile C++ project with CMake (VERSION 3.22.1)

T& operator[](const std::string& str, std::size_t sz)
{
//
}

Intellicode is marking operator[] function and says "too many parameters for this operator function C/C++(344)"
When I compile the code, the compilations end without any problem and the code works.

By C++23 standards the array subscript operator can now take more than one subscript

Metadata

Metadata

Assignees

No one assigned

    Labels

    product-feedbackseems-external-needs-routingIssues that seem unrelated to an IntelliCode extension and need to be routed elsewherevscode-intellicodeCore "IntelliCode" extension for VSCode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions