Thread overview
[Issue 8066] New: ICE on missing return statement if invariant is present
May 08, 2012
Trass3r
May 08, 2012
Kenji Hara
May 10, 2012
Trass3r
May 08, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8066

           Summary: ICE on missing return statement if invariant is
                    present
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: mrmocool@gmx.de


--- Comment #0 from Trass3r <mrmocool@gmx.de> 2012-05-08 14:08:16 CEST ---
struct CLCommandQueue
{
    invariant() {}

//private:
    int enqueueNativeKernel()
    {
        assert(0, "implement me");
    }
}

$ dmd -c commandqueue.d
dmd: func.c:1557: virtual void FuncDeclaration::semantic3(Scope *): Assertion
`vresult' failed.

Works without the invariant or with the private.

Might have to do with the fix for http://d.puremagic.com/issues/show_bug.cgi?id=5039, but that's just a guess.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 08, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8066


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-08 05:38:22 PDT ---
https://github.com/D-Programming-Language/dmd/pull/934

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8066



--- Comment #2 from github-bugzilla@puremagic.com 2012-05-10 12:53:48 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ad9e8e6ded41180b01ae8ff4460ce066a78cad93 fix Issue 8066 - ICE on missing return statement if invariant is present

https://github.com/D-Programming-Language/dmd/commit/fefeed478ab3a201afe2536c8a4734df92228187 Merge pull request #934 from 9rnsr/fix8066

Issue 8066 - ICE on missing return statement if invariant is present

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8066


Trass3r <mrmocool@gmx.de> 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: -------