← Back to index
|
Original Bugzilla link
Bug 11153 – Regression (2.064 git-head): ICE during a diagnostic for missing return type
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-01T12:44:00Z
Last change time
2013-10-02T05:56:25Z
Keywords
ice, pull
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2013-10-01T12:44:20Z
----- struct S { foo(T)() { } } void main() { } ----- test.d(3): Error: function declaration without return type. (Note that constructors are always named 'this') test.d(3): Error: no identifier for declarator foo() And a crash with the stack-trace: ----- 0018ef44 00444dcf image00400000!halt+0x5 [C:\dmd-git\dmd2\src\dmd\src\mars.c @ 338] 0018ef74 0049b6df image00400000!Dsymbol::oneMembers+0xe6 [C:\dmd-git\dmd2\src\dmd\src\dsymbol.c @ 140] 0018efa0 0040d570 image00400000!TemplateDeclaration::TemplateDeclaration+0x93 [C:\dmd-git\dmd2\src\dmd\src\template.c @ 514] 0018f238 00406837 image00400000!Parser::parseDeclarations+0x1638 [C:\dmd-git\dmd2\src\dmd\src\parse.c @ 3377] 0018f41c 00409c52 image00400000!Parser::parseDeclDefs+0x25d [C:\dmd-git\dmd2\src\dmd\src\parse.c @ 240] 0018f4bc 0040cbdd image00400000!Parser::parseAggregate+0x29a [C:\dmd-git\dmd2\src\dmd\src\parse.c @ 1797] 0018f738 00406837 image00400000!Parser::parseDeclarations+0xca5 [C:\dmd-git\dmd2\src\dmd\src\parse.c @ 3190] 0018f91c 00406559 image00400000!Parser::parseDeclDefs+0x25d [C:\dmd-git\dmd2\src\dmd\src\parse.c @ 240] 0018f978 00417c8b image00400000!Parser::parseModule+0x174 [C:\dmd-git\dmd2\src\dmd\src\parse.c @ 133] 0018fab4 00404f27 image00400000!Module::parse+0x6a0 [C:\dmd-git\dmd2\src\dmd\src\module.c @ 501] 0018ff0c 00405d03 image00400000!tryMain+0x27fa [C:\dmd-git\dmd2\src\dmd\src\mars.c @ 1477] 0018ff48 0057cb6d image00400000!main+0x43 [C:\dmd-git\dmd2\src\dmd\src\mars.c @ 1803] ----- This line in dsymbol.c triggers it: assert(ident);
Comment #1
by k.hara.pg — 2013-10-01T20:07:31Z
https://github.com/D-Programming-Language/dmd/pull/2610
The bug had introduced by:
https://github.com/D-Programming-Language/dmd/commit/10cf2d97cd8fffce312d8bf48ca4830ceb5bed05
Comment #2
by github-bugzilla — 2013-10-02T05:56:13Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/56198c2fededb1e35c96366cb2a0439bb7d7c307
fix Issue 11153 - ICE during a diagnostic for missing return type
https://github.com/D-Programming-Language/dmd/commit/cff3d4f1f49e8e91c6a9aaf0c35fbd521a845ba1
Merge pull request #2610 from 9rnsr/fix11153 [REG2.064a] Issue 11153 - ICE during a diagnostic for missing return type