microsoft / microsoft/vscode-cpptools

mdspan

Aperta
#11,295 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@michelleangela ci sta già lavorando.

Dal 7/8/2023.

bug Language Service verified Visual Studio
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Environment
  • OS and Version: Windows 11
  • VS Code Version: 1.82.0-insider
  • C/C++ Extension Version: 1.16.3
Bug Summary and Steps to Reproduce

Bug Summary:
I am trying to use the mdspan in VSCode. I am using the parameters in Godbolt example and made a test. The code compiles without warnings or errors, however, VSCode intellisense shows an error. I have matched the compile flags with VScode c_cpp_properties.json, however, the error still persists.

Steps to reproduce:

  1. Go to 'https://github.com/danchitnis/mdspan-test'
  2. Close and open with VSCode
  3. modify the c_cpp_properties.json, to point to your g++ compiler
  4. See the highlighted errors in VSCode

Expected behavior: No highlighted errors

Configuration and Logs
{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/include"
            ],
            "defines": ["_DEBUG", "UNICODE", "_UNICODE"],
            "cStandard": "c23",
            "cppStandard": "c++23",
            "intelliSenseMode": "windows-clang-x64",
            "compilerPath": "c:/msys64/ucrt64/bin/g++.exe",
            "compilerArgs": [
                "-std=c++23"
            ]
        }
    ],
    "version": 4
}
Other Extensions

No response

Additional context

Errors are:

no instance of constructor "std::extents<IndexType, Extents...>::extents [with IndexType=unsigned long long, Extents=<18446744073709551615ULL, 18446744073709551615ULL>]" matches the argument listC/C++(289) test.cpp(13, 45): argument types are: (int, int)

expression preceding parentheses of apparent call must have (pointer-to-) function typeC/C++(109)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.