diff options
| author | gingerBill <bill@gingerbill.org> | 2022-09-17 11:01:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-09-17 11:01:56 +0100 |
| commit | 99a1a102864689bd8904f10e1a7fe0f79363399f (patch) | |
| tree | 7038c8efc79d8b7299b243fc7d76d75aa17fe2f9 /src/llvm_backend_expr.cpp | |
| parent | 9640b493191e2ec0ff1338751a053a5ef559728d (diff) | |
Fixed #2044 Uninitialised constant struct member values can cause crash
Foo :: struct {
x: i32,
data: sa.Small_Array(10, i32),
}
defaultFoo :: Foo{
x = 1,
// The 'data' value is not set!
}
fmt.println(defaultFoo.data) // caused the bug
Diffstat (limited to 'src/llvm_backend_expr.cpp')
0 files changed, 0 insertions, 0 deletions