mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix issue with type_info not being completely poisoned when encountering an error. Fixes #905
This commit is contained in:
@@ -2598,6 +2598,7 @@ INLINE bool type_info_poison(TypeInfo *type)
|
||||
type->resolve_status = RESOLVE_NOT_DONE;
|
||||
return false;
|
||||
}
|
||||
type->kind = TYPE_INFO_POISON;
|
||||
type->type = poisoned_type;
|
||||
type->resolve_status = RESOLVE_DONE;
|
||||
return false;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define COMPILER_VERSION "0.4.593"
|
||||
#define COMPILER_VERSION "0.4.594"
|
||||
12
test/test_suite/types/illegal_array_size_constant.c3
Normal file
12
test/test_suite/types/illegal_array_size_constant.c3
Normal file
@@ -0,0 +1,12 @@
|
||||
module testing;
|
||||
|
||||
struct Foo
|
||||
{
|
||||
Entry[1 << N] data; // #error: 'N' could not be found
|
||||
}
|
||||
|
||||
struct Entry
|
||||
{
|
||||
String key;
|
||||
String value;
|
||||
}
|
||||
Reference in New Issue
Block a user