-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviortranslate-cC to Zig source translation feature (@cImport)C to Zig source translation feature (@cImport)
Milestone
Description
Zig Version
0.11.0-dev.1568+c9b957c93
Steps to Reproduce and Observed Behavior
Using zig translate-c, I get a segfault with this case:
typedef char* S;
void foo() {
S a, b;
long c = a - b;
}Looks like it has something to do with this typedef. If a and b are char*, this translates correctly.
Expected Behavior
Valid compilation or error saying why it failed
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviortranslate-cC to Zig source translation feature (@cImport)C to Zig source translation feature (@cImport)