Skip to content

Conversation

@mlugg
Copy link
Member

@mlugg mlugg commented Mar 16, 2025

Resolves: #23190

@alexrp alexrp added this to the 0.14.1 milestone Mar 16, 2025
@mlugg mlugg force-pushed the comptime-field-ptr branch from 9c395c5 to f3a69b1 Compare March 17, 2025 03:46
@mlugg mlugg force-pushed the comptime-field-ptr branch from 752e376 to 3e69186 Compare March 29, 2025 22:49
mlugg and others added 3 commits April 28, 2025 01:14
Turns out the backend currently never emits a non-static initializer,
but the handling is kept in case it is needed again in the future.
@mlugg mlugg force-pushed the comptime-field-ptr branch from 3e69186 to 029cc06 Compare April 28, 2025 00:19
`writeCValue` already emits a cast; including another here is, in fact,
invalid, and emits errors under MSVC. Probably this code was originally
added to work around the incorrect `.Initializer` location which was
fixed in the previous commit.
@mlugg mlugg merged commit f4e9846 into ziglang:master May 3, 2025
17 of 18 checks passed
alexrp pushed a commit that referenced this pull request May 4, 2025
Sema: fix pointers to comptime fields of comptime-known aggregate pointers
@mlugg mlugg deleted the comptime-field-ptr branch May 18, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segmentation Fault When Using Anonymous Struct Literal Assignment

3 participants