https://issues.dlang.org/show_bug.cgi?id=17275
Issue ID: 17275 Summary: [REG 2.072.0] AssertError@declaration.d(2121): Assertion failure Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: ibuc...@gdcproject.org Introduced by: https://github.com/dlang/dmd/pull/6065 Reduced: --- struct DSO { inout(ModuleGroup) moduleGroup() { } } struct ThreadDSO { DSO* _pdso; void[] _tlsRange; } --- Causes assertion failure: ``` sections.d(3): Error: undefined identifier 'ModuleGroup', did you mean function 'moduleGroup'? sections.d(3): Error: inout on return means inout must be on a parameter as well for inout(ModuleGroup)() core.exception.AssertError@declaration.d(2121): Assertion failure ---------------- ??:? _d_assert [0x705b70] ??:? void ddmd.declaration.__assert(int) [0x52b962] ??:? bool VarDeclaration::isOverlappedWith(VarDeclaration*) [0x52a0f5] ??:? bool AggregateDeclaration::checkOverlappedFields() [0x4f71c8] ??:? void StructDeclaration::finalizeSize() [0x55366e] ??:? bool AggregateDeclaration::determineSize(Loc) [0x4f6fb9] ??:? void AggregateDeclaration::semantic2(Scope*) [0x4f6995] ??:? void Module::semantic2(Scope*) [0x54899d] ??:? int ddmd.mars.tryMain(ulong, const(char)**) [0x5cf4b4] ??:? _Dmain [0x5d0222] ??:? _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv [0x707a17] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x707943] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() [0x7079bc] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x707943] ??:? _d_run_main [0x7078a7] ??:? main [0x5d09c3] ??:? __libc_start_main [0xd137882f] ``` --