You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code causes program to crash with Segmentation fault on Windows using master (f7721ac). On 0.4.0 program silently crashes without any trace.
No warnings or errors are generated.
My assumption would be that &Foo{.bla = 3} would behave like a compound literal in C99; that is an lvalue with storage duration of enclosing block scope, just like if I had assigned it to a temporary variable.
The text was updated successfully, but these errors were encountered:
This is a missing compile error - Foo{ .bla = 3 } is a constant; generated in the constant data section. The reference to it is incorrectly mutable. The segfault is coming from writing to constant data section which does not have write perms.
andrewrk
added
the
stage1
The process of building from source via WebAssembly and the C backend.
label
Feb 13, 2020
The following code causes program to crash with Segmentation fault on Windows using master (f7721ac). On 0.4.0 program silently crashes without any trace.
No warnings or errors are generated.
My assumption would be that
&Foo{.bla = 3}
would behave like a compound literal in C99; that is anlvalue
with storage duration of enclosing block scope, just like if I had assigned it to a temporary variable.The text was updated successfully, but these errors were encountered: