← Back to index
|
Original Bugzilla link
Bug 17275 – [REG 2.072.0]
[email protected]
(2121): Assertion failure
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-03-25T11:14:00Z
Last change time
2017-08-07T13:15:43Z
Keywords
ice
Assigned to
nobody
Creator
ibuclaw
Comments
Comment #0
by ibuclaw — 2017-03-25T11:14:21Z
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)()
[email protected]
(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] ```
Comment #1
by bugzilla — 2017-04-12T04:38:52Z
https://github.com/dlang/dmd/pull/6690
Comment #2
by github-bugzilla — 2017-04-12T19:05:02Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/3a24d037f5d38bd7e751636e5a3adb73211c966e
fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Assertion failure
https://github.com/dlang/dmd/commit/15b3ee1603b7dcc0317ba63c54f77ee9718f90e4
Merge pull request #6690 from WalterBright/fix17275 fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Asse…
Comment #3
by ibuclaw — 2017-04-20T20:58:08Z
This is not fixed. --- $ ./src/dmd test/fail_compilation/fail17275.d test/fail_compilation/fail17275.d(5): Error: undefined identifier 'ModuleGroup', did you mean function 'moduleGroup'? test/fail_compilation/fail17275.d(5): Error: inout on return means inout must be on a parameter as well for inout(ModuleGroup)() core.exception.AssertError@ddmd/argtypes.d(201): Assertion failure ---------------- ??:? _d_assert [0x72bdb4] ??:? void ddmd.argtypes.__assert(int) [0x510ff2] ??:? Type* toArgTypes::ToArgTypes::argtypemerge(Type*, Type*, unsigned int) [0x5106ce] ??:? void toArgTypes::ToArgTypes::visit(TypeStruct*) [0x510dae] ??:? void TypeStruct::accept(Visitor*) [0x5f3830] ??:? TypeTuple* toArgTypes(Type*) [0x5102b9] ??:? void StructDeclaration::finalizeSize() [0x56b414] ??:? bool AggregateDeclaration::determineSize(Loc) [0x50e659] ??:? void AggregateDeclaration::semantic2(Scope*) [0x50dff5] ??:? void Module::semantic2(Scope*) [0x56067d] ??:? int ddmd.mars.tryMain(ulong, const(char)**) [0x5dfa4b] ??:? _Dmain [0x5e09b2] ??:? _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv [0x72dc5b] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x72db87] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() [0x72dc00] ??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x72db87] ??:? _d_run_main [0x72daeb] ??:? main [0x5e1153] ??:? __libc_start_main [0xb2a6282f]
Comment #4
by bugzilla — 2017-05-30T03:26:25Z
https://github.com/dlang/dmd/pull/6845
Comment #5
by bugzilla — 2017-06-09T09:11:31Z
https://github.com/dlang/dmd/pull/6875
Comment #6
by github-bugzilla — 2017-06-11T06:28:44Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/d46fcde6214ab49cefc0c3ed2e24059f356dd429
fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Assertion failure
https://github.com/dlang/dmd/commit/cb61805ebf04b7e27e18ca5ad98fae39d8a9a2f6
Merge pull request #6875 from WalterBright/fix17275-2 fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Asse… merged-on-behalf-of: Walter Bright <
[email protected]
>
Comment #7
by github-bugzilla — 2017-06-17T11:33:54Z
Commits pushed to stable at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/3a24d037f5d38bd7e751636e5a3adb73211c966e
fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Assertion failure
https://github.com/dlang/dmd/commit/15b3ee1603b7dcc0317ba63c54f77ee9718f90e4
Merge pull request #6690 from WalterBright/fix17275
https://github.com/dlang/dmd/commit/d46fcde6214ab49cefc0c3ed2e24059f356dd429
fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Assertion failure
https://github.com/dlang/dmd/commit/cb61805ebf04b7e27e18ca5ad98fae39d8a9a2f6
Merge pull request #6875 from WalterBright/fix17275-2
Comment #8
by github-bugzilla — 2017-08-07T13:15:43Z
Commits pushed to newCTFE at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/3a24d037f5d38bd7e751636e5a3adb73211c966e
fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Assertion failure
https://github.com/dlang/dmd/commit/15b3ee1603b7dcc0317ba63c54f77ee9718f90e4
Merge pull request #6690 from WalterBright/fix17275
https://github.com/dlang/dmd/commit/d46fcde6214ab49cefc0c3ed2e24059f356dd429
fix Issue 17275 - [REG 2.072.0]
[email protected]
(2121): Assertion failure
https://github.com/dlang/dmd/commit/cb61805ebf04b7e27e18ca5ad98fae39d8a9a2f6
Merge pull request #6875 from WalterBright/fix17275-2