-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Surprising aliasing despite explicit copy #22906
Copy link
Copy link
Closed
Labels
backend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviormiscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Milestone
Metadata
Metadata
Assignees
Labels
backend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviormiscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig Version
0.13.0 and 0.14.0-dev.3223+13ad984b1
Steps to Reproduce and Observed Behavior
Standard PRO/RLS surprise, except that this one occurs through an explicit copy, which means my workarounds can't be trusted. This segfaults only for
Thing = [1]u32and notThing = u32, and only on llvm backends.Expected Behavior