-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
C compilation error when passing incompatible type as T #24448
Copy link
Copy link
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Generics[T]Bugs/feature requests, that are related to the V generics.Bugs/feature requests, that are related to the V generics.Status: ConfirmedThis bug has been confirmed to be valid by a contributor.This bug has been confirmed to be valid by a contributor.Unit: cgenBugs/feature requests, that are related to the default C generating backend.Bugs/feature requests, that are related to the default C generating backend.
Description
Metadata
Metadata
Assignees
Labels
BugThis tag is applied to issues which reports bugs.This tag is applied to issues which reports bugs.Generics[T]Bugs/feature requests, that are related to the V generics.Bugs/feature requests, that are related to the V generics.Status: ConfirmedThis bug has been confirmed to be valid by a contributor.This bug has been confirmed to be valid by a contributor.Unit: cgenBugs/feature requests, that are related to the default C generating backend.Bugs/feature requests, that are related to the default C generating backend.
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
... this is a reduced example (excluding use of the
tomlmodule.) of the issue originally opened in #24435 (fixed in #24443 specifically for thetomlmodule).The output from the reduced code, when compiled with
gccis this:Reproduction Steps
This code results in the compile error above:
Expected Behavior
Clean compile and run
Current Behavior
C error:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.10 875c165
Environment details (OS name and version, etc.)
EndeavourOS (rolling, Arch-based)