Skip to content

ICE calling function pointer with noreturn parameter #22956

@Herringway

Description

@Herringway
void main() {
	void function(noreturn) fun;
	fun(assert(0));
}

As of DMD 2.112.0, compiling this causes dmd to print TYvoid and crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions