Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compiler fails with unexpected error #2087

@SRaimondi

Description

@SRaimondi

Building a project with the latest compiler fails with the following error

⚠️ The compiler encountered an unexpected error: "Violated assert: hi_offset + llvm_store_size(c, hi) <= type_size(decl->type)".

- Function: llvm_process_parameter_value(...)
- Source file: ***c3c/src/compiler/llvm_codegen_function.c:154

🙏 Please consider taking the time to file an issue on GitHub, so that we can get it fixed:

https://github.com/c3lang/c3c/issues/new so that we can get it fixed.

Invoking c3c --version reports

C3 Compiler Version:       0.7.1 (Pre-release, Apr 16 2025 10:39:15)
Installed directory:       ***
Git Hash:                  e7c9ec0938cf9aa7f7ada0a55116eddec8951345
Backends:                  LLVM
LLVM version:              20.1.3
LLVM default target:       x86_64-pc-linux-gnu

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingFixed needs testingNeeds verification / testing that it now works

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions