Skip to content

Invalid function def makes my typedef go away! #13762

@cD1rtX3

Description

@cD1rtX3

Type: Bug

I have a typedef like this:

typedef struct S {
    /* ... */
} S;

Now, if I were to accidentally declare a function like this:

void S func();

instead of correctly telling me something like "Invalid combination of type specifiers", Intellisense completely forgets the typedef ever existed, throwing unhelpful errors everywhere S is used.

Extension version: 1.26.3
VS Code version: Code 1.102.0 (cb0c47c0cfaad0757385834bd89d410c78a856c0, 2025-07-09T22:10:34.600Z)
OS version: Linux x64 6.8.0-63-generic
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 2, 3, 3
Memory (System) 15.34GB (8.58GB free)
Process Argv --crash-reporter-id 3cdbf6ce-6d27-475a-ae69-ae7116a9bb80
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions