Skip to content

Fix #23907 - ICE: inout substitution through an enum base type - #23911

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
dkorpel:fix-23907
Sep 23, 2026
Merged

thewilsonator merged 1 commit into
dlang:masterfrom
dkorpel:fix-23907

Conversation

@dkorpel

@dkorpel dkorpel commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Type t;

if (Type tn = type.nextOf())
Type tn = type.ty == Tenum ? null : type.nextOf();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same pattern as unqualify():

Type unqualify(Type type, uint m)
{
    Type t = type.mutableOf().unSharedOf();

    Type tn = type.ty == Tenum ? null : type.nextOf();
    if (tn && tn.ty != Tfunction)

@thewilsonator
thewilsonator merged commit 23fa260 into dlang:master Sep 23, 2026
40 of 42 checks passed
@dkorpel
dkorpel deleted the fix-23907 branch September 23, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants