www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8630] New: Assertion failure: 'fd && fd->inferRetType' on line 81 in file 'mangle.c'

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630

           Summary: Assertion failure: 'fd && fd->inferRetType' on line 81
                    in file 'mangle.c'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: wfunction hotmail.com



typeof(v) foo(R)(R v) { return array(map!(p => p)(v)); }
void main() { foo(1); }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630




Oops, that should've said  foo([0]) instead of foo(1).
Doesn't make any difference, though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630




Is this a regression? If really so, Would you please show us the the version
that didn't assert.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630




http://ideone.com/VD30n

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630





 http://ideone.com/VD30n
Thanks. Ideone uses 2.042. And in my local, with 2.058 success, but with 2.059 fails. I don't find the actual commit which introduced the regression, but this is really a regression of 2.059. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630


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

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



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/eb61951d58952b10e3e74a025f669a862ef05485
fix Issue 8630 - Assertion failure: 'fd && fd->inferRetType' on line 81 in file
'mangle.c'

If function type invalidation is detected in FuncDeclaration::semantic,
FuncDeclaration::semantic3 should not run.

When return type is an error, running function body semantic would print some
relevant errors, but they are fake errors. So we should stop meaningless
semantic3 IMO.

https://github.com/D-Programming-Language/dmd/commit/16a4543b7c87b594097e11db388956d1b838cceb


Issue 8630 - Assertion failure: 'fd && fd->inferRetType' on line 81 in file
'mangle.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/12427da2b21f56e038b988d7c1ebcb1ae84ff7e8
Add test case for issue 8630.

https://github.com/D-Programming-Language/dmd/commit/299c489f78b2db4309d153addb4aeff67d9e9abf


Add test case for issue 8630.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 09 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8630


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr puremagic.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 09 2012