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

Skip to content

LLVM ERROR: Invalid size request on a scalable vector. #2088

@Book-reader

Description

@Book-reader
struct Foo
{
	inline String str;
}

fn void main()
{
	(Foo){}.len;
}

when compiling the above code, c3c prints LLVM ERROR: Invalid size request on a scalable vector. then segfaults

C3 Compiler Version:       0.7.1 (Pre-release, Jan  1 1980 00:00:00)
Installed directory:       /nix/store/4qcbk9mzzncgbx2cakasvc9bjz6x2c5f-c3c-0.7.1/bin/
Git Hash:                  e7c9ec0938cf9aa7f7ada0a55116eddec8951345
Backends:                  LLVM
LLVM version:              19.1.6
LLVM default target:       x86_64-unknown-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