We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This starts manifesting with struct literals 2 levels deep. This only seems to happen with runtime slices.
pub fn main() void { die(""); } fn die(slice: []const u8) void { const working = .{ .bar = slice, .baz = "", }; const broken = .{ .foo = .{ .bar = slice, .baz = "", // this line creates a runtime bus error }, }; const really_broken = .{ .foo = .{ .bar = slice, .baz = .{}, // the compiler seg faults when having a third nested level }, }; }
The text was updated successfully, but these errors were encountered:
Possibly caused by the same issue as #6043
Sorry, something went wrong.
Here's another similar looking one: #3915
Dupe of #7627
No branches or pull requests
This starts manifesting with struct literals 2 levels deep. This only seems to happen with runtime slices.
The text was updated successfully, but these errors were encountered: