Skip to content

Incorrect function contract syntax segfaults the compiler. #21403

@jnms-me

Description

@jnms-me

Mistakingly I wrote out(expr) instead of out(; expr) on a ctor.
In this specific case it segfaults the compiler:

abstract class C1 {}

class C2 : C1
{
    bool member;

    this()
    out (member)
    {
    }
}

Seems to happen at src/dmd/dsymbolsem.d+2425.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions