diff --git a/README.md b/README.md index aa924d2..377d671 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ $ sigma compile main.s ## Project status As Sigma is currently under heavy development, it isn't ready for stable use, and many breaking changes may (and most likely will) be made. Please note that while the end goal is to target GPU's and other massivelly parallel targets, the current goal is to get a basic CPU-oriented language going, and there isn't a hard timeframe set - for more details see the current status bellow: - TODO: - - Expression evaluator - Project cleanup - - Custom structured types + - Better object file emitter (Windows) + - First PTX tests - Future: - Unified package manager - Official GPU support via kernels diff --git a/source/compiler/compiler/type_system/semantic_context.cpp b/source/compiler/compiler/type_system/semantic_context.cpp index d733aaa..170a2d7 100644 --- a/source/compiler/compiler/type_system/semantic_context.cpp +++ b/source/compiler/compiler/type_system/semantic_context.cpp @@ -234,7 +234,7 @@ namespace sigma { if(const handle resolved = m_current_scope->find_type(type.unresolved_key)) { type.members = resolved->members; type.base_type = resolved->base_type; - type.pointer_level = resolved->pointer_level; + // type.pointer_level = resolved->pointer_level; return SUCCESS; } diff --git a/source/compiler/test/main.s b/source/compiler/test/main.s index cedacfa..6c03ea0 100644 --- a/source/compiler/test/main.s +++ b/source/compiler/test/main.s @@ -29,5 +29,7 @@ i32 main() { my_user.k.value[1] = 321; printf("key: %d %d\n", my_user.k.value[0], my_user.k.value[1]); + printf("%d\n", sizeof(user)); + ret 0; } diff --git a/tests/random_keywords/sizeof.s b/tests/random_keywords/sizeof.s index f8244e0..7c4d122 100644 --- a/tests/random_keywords/sizeof.s +++ b/tests/random_keywords/sizeof.s @@ -24,6 +24,7 @@ i32 main() { }; printf("%d\n", sizeof(s2)); + printf("%d\n", sizeof(s2*)); ret 0; } diff --git a/tests/random_keywords/sizeof_expected.txt b/tests/random_keywords/sizeof_expected.txt index 2bf639c..38681db 100644 --- a/tests/random_keywords/sizeof_expected.txt +++ b/tests/random_keywords/sizeof_expected.txt @@ -12,3 +12,4 @@ 8 4 16 +8