Skip to content

Commit c166c30

Browse files
authored
Merge pull request #8294 from kinke/fix_ice
Fix typo in dmd.expression apparently causing sporadic frontend crashes merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2 parents 9e85900 + 8dabac3 commit c166c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dmd/expression.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ extern (C++) abstract class Expression : RootObject
21202120

21212121
if (v.type.ty == Tstruct)
21222122
{
2123-
StructDeclaration sd = (cast(TypeStruct)type).sym;
2123+
StructDeclaration sd = (cast(TypeStruct)v.type).sym;
21242124
if (sd.hasNoFields)
21252125
return false;
21262126
}

0 commit comments

Comments
 (0)