Skip to content

compiler segfault on type recursion #23224

@enthus1ast

Description

@enthus1ast

Description

import tables

type
  Funcs = Table[string, FFunc]
  FFunc = proc(funcs: Funcs)

this crashes the compiler:

Hint: used config file '/playground/nim/config/nim.cfg' [Conf]
Hint: used config file '/playground/nim/config/config.nims' [Conf]
.................................................................................Segmentation fault (core dumped)

Nim Version

Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2024-01-16
Copyright (c) 2006-2024 by Andreas Rumpf

git hash: 18b5fb2
active boot switches: -d:release

Current Output

No response

Expected Output

No response

Possible Solution

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions