[Issue 11153] New: Regression (2.064 git-head): ICE during a diagnostic for missing return type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 1 12:44:23 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11153
Summary: Regression (2.064 git-head): ICE during a diagnostic
for missing return type
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-10-01 12:44:20 PDT ---
-----
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);
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list