[Issue 9096] New: comsub bug with chained function calls, optimization and attributes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 29 10:12:00 PST 2012
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 at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at 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: -------
More information about the Digitalmars-d-bugs
mailing list