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

Skip to content

compiler assert when getting a member of a bitstruct : char @bigendian #2517

@Book-reader

Description

@Book-reader
bitstruct Instruction : char @bigendian
{
	ushort count : 4..7;
}

fn int main(String[] args)
{
	Instruction a;
	return a.count;
}
⚠️ The compiler encountered an unexpected error: "Violated assert: type != c->byte_type".

- Function: llvm_emit_bswap(...)
- Source file: /build/6pkxvdws1dcnnai3g48sk1lj29a6abi9-source/src/compiler/llvm_codegen_expr.c:916

🙏 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.

Metadata

Metadata

Assignees

Labels

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions