www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9096] New: comsub bug with chained function calls, optimization and attributes

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

           Summary: comsub bug with chained function calls, optimization
                    and attributes
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: dawg dawgfoto.de


--- Comment #0 from dawg dawgfoto.de 2012-11-29 10:11:58 PST ---
cat > bug.d << CODE
class Foo
{
    size_t tsize() { return 0; }
    inout(Foo) next() nothrow pure inout { return this; }
}

void bug()
{
    auto foo = new Foo();
    auto sz = foo.next().tsize();
}
CODE

dmd -c -m32 -O -release -inline bug.d
Internal error: backend/cgcod.c 2114
------

This seems to be OSX32 only.
This happens only with 'nothrow pure inout'.
This happens only with '-O -release -inline'.

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


dawg dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


--- Comment #1 from dawg dawgfoto.de 2012-11-29 10:15:57 PST ---
This blocks https://github.com/D-Programming-Language/druntime/pull/359.

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



--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-02-17 02:20:25 PST ---
Same problem occurs in Windows7 (64bit) platform with git head (b729055).

output:
----
DMD v2.062 DEBUG
el:0035139C cnt=2 cs=255 var  TY*  foo
Internal error: backend\cgcod.c 2188

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