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


--- Comment #0 from wfunction hotmail.com 2012-09-08 01:14:44 PDT ---
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



--- Comment #1 from wfunction hotmail.com 2012-09-08 01:16:01 PDT ---
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



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2012-09-08 01:44:50 PDT ---
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



--- Comment #3 from wfunction hotmail.com 2012-09-08 01:49:24 PDT ---
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



--- Comment #4 from Kenji Hara <k.hara.pg gmail.com> 2012-09-08 02:13:29 PDT ---
(In reply to comment #3)
 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


--- Comment #5 from Kenji Hara <k.hara.pg gmail.com> 2012-09-08 02:14:28 PDT ---
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



--- Comment #6 from github-bugzilla puremagic.com 2012-09-08 13:37:46 PDT ---
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
Merge pull request #1107 from 9rnsr/fix8630

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



--- Comment #7 from github-bugzilla puremagic.com 2012-09-09 12:34:10 PDT ---
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
Merge pull request #1108 from 9rnsr/fix8630

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