Skip to content

SIGSEGV when compiling when with typedesc #25407

@arnetheduck

Description

@arnetheduck

Nim Version

86bbc73

Description

template test(): typedesc =
  when true:
    int
  else:
    bool

const c = default(test())
echo c

Current Output

nim c test
......................................................................SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault         (core dumped) nim c test

Expected Output


Known Workarounds

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions