www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11153] New: Regression (2.064 git-head): ICE during a diagnostic for missing return type

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



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: -------
Oct 01 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11153


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull



https://github.com/D-Programming-Language/dmd/pull/2610

The bug had introduced by:
https://github.com/D-Programming-Language/dmd/commit/10cf2d97cd8fffce312d8bf48ca4830ceb5bed05

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11153




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


[REG2.064a] Issue 11153 - ICE during a diagnostic for missing return type

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11153


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013