False positive on struct declaration
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 46/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- c, typescript, vscode
Direção de pesquisa
Start by reproducing the diagnostic in a new .c file containing the reported struct declaration, using VS Code 1.142.0 and C/C++ Extension 1.35.4 with the supplied GNU C23 configuration. The report does not identify implementation files or tests, so trace the IntelliSense handling for C struct declarations and diagnostic C/C++(3799). Done means the minimal example produces no false positive.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Environment
- OS and Version: Pop!-os 26.04, kernel version : 7.2.6-76070206-generic
- VS Code Version: 1.142.0
- C/C++ Extension Version: 1.35.4
Bug Summary and Steps to Reproduce
Bug Summary:
When declaring a struct in C, I sometimes get the following false positive from IntelliSense:
this declaration of struct "test_s" does not declare the same type as the declaration at line 1 C/C++(3799)
Steps to reproduce:
-
Create a new .c file.
-
Paste the following code:
struct test_s {
int x;
};
- Observe the diagnostic on the struct declaration.
Expected behavior:
No error
Configuration and Logs
-------- Diagnostics - 20/10/2026 22:32:22
Version: 1.35.4
Current Configuration:
{
"name": "Linux",
"includePath": [
"/home/fuco/Workflow/test/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu23",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64",
"compilerPathInCppPropertiesJson": "/usr/bin/gcc",
"intelliSenseModeIsExplicit": false,
"cStandardIsExplicit": false,
"cppStandardIsExplicit": false,
"mergeConfigurations": false,
"recursiveIncludes": {},
"recursiveIncludesPriorityIsExplicit": false,
"recursiveIncludesOrderIsExplicit": false,
"compilerPathIsExplicit": false,
"browse": {
"limitSymbolsToIncludedHeaders": true
}
}
Modified Settings:
{
"C_Cpp.vcFormat.newLine.beforeOpenBrace.function": "sameLine",
"C_Cpp.vcFormat.newLine.beforeOpenBrace.block": "sameLine",
"C_Cpp.vcFormat.newLine.beforeOpenBrace.lambda": "sameLine",
"C_Cpp.vcFormat.newLine.closeBraceSameLine.emptyType": true,
"C_Cpp.vcFormat.space.insertAfterSemicolon": true
}
Additional Tracked Settings:
{
"editorTabSize": 4,
"editorInsertSpaces": true,
"editorAutoClosingBrackets": "languageDefined",
"filesEncoding": "utf8",
"filesAssociations": {},
"filesExclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.jj": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"filesAutoSaveAfterDelay": true,
"editorInlayHintsEnabled": true,
"editorParameterHintsEnabled": true,
"searchExclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true
},
"workbenchSettingsEditor": "ui"
}
cpptools version (native): 1.35.4.0
Current database path: /home/fuco/.cache/vscode-cpptools/e1ff282c2a110311f8747a3c5f985f5e/.browse.VC.db
Translation Unit Mappings:
[ /home/fuco/Workflow/test/test.c - source TU]:
Translation Unit Configurations:
[ /home/fuco/Workflow/test/test.c ]
Process ID: 19327
Memory Usage: 20 MB
Compiler Path: /usr/bin/gcc
Language: C
Include Paths:
system include: /usr/lib/gcc/x86_64-linux-gnu/15/include
system include: /usr/local/include
system include: /usr/include/x86_64-linux-gnu
system include: /usr/include
include (recursive): /home/fuco/Workflow/test
Standard Version: c23
IntelliSense Mode: linux-gcc-x64
Other Flags:
--gcc
--gnu_version=150200
Total Memory Usage: 20 MB
Other Extensions
No response
Additional context
No response
- Linguagem predominante
- TypeScript
- Estrelas
- 6.2k
- Forks
- 1.7k
- Merge médio
- 1d 16h
- PRs com merge (30d)
- 21
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/vscode-cpptools
-
Allow case-insensitive suppression of parameter inlay hintsTalvez já em andamento @Colengms assumiu há 10 dias. Abertabug Feature: Inlay Hint fixed Language Service
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
microsoft/vscode-cpptools#14829 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Language server exits with code 0 and restarts repeatedly (1.35.4, Windows 11)Talvez já em andamento @sean-mcmanus assumiu há 1 dia. Abertabug Language Service more info needed reliability
microsoft/vscode-cpptools#14841 · 4 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
code runnerAbertaLanguage Service more info needed
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
microsoft/vscode-cpptools#14840 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug external
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
microsoft/vscode-cpptools#14838 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
microsoft/vscode-cpptools#14834 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de microsoft/vscode-cpptools
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
braintrustdata/braintrust-sdk-javascript#2659 ·
Mantenedores costumam responder em até 1 dia
-
body-parser 2.3.0 in the published ai-dial-chat-bff image is vulnerable (CVE-2026-111181, HIGH)Talvez já em andamento @illya-havsiyevych assumiu hoje. Abertabug
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 87/100
epam/ai-dial-chat#9566 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Mantenedores costumam responder em até 1 dia
-
はさみアイコンを修正するAbertabug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
-
resource.reload() while params is in error switches the resource to 'idle' instead of retryingAbertaarea: core
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia