[Issue 17275] New: [REG 2.072.0] AssertError at declaration.d(2121): Assertion failure
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Mar 25 04:14:21 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17275
Issue ID: 17275
Summary: [REG 2.072.0] AssertError at declaration.d(2121):
Assertion failure
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at 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 at 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]
```
--
More information about the Digitalmars-d-bugs
mailing list