[Issue 9055] Compiler segfaults on forward reference to auto-return member function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 6 23:59:44 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9055


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #8 from Walter Bright <bugzilla at digitalmars.com> 2013-10-06 23:59:42 PDT ---
The attachment code:
---------------------------
import std.array: Appender;
class Silent{
  debug
    private Appender!string retval= this.ini;
  else
    private Appender!string retval;
  auto ini(){
    return Appender!string("");
  }
}
void main(){
}
--------------------------
dmd test
test.d(8): Error: constructor std.array.Appender!string.Appender.this (char[]
arr) is not callable using argument types (string)

dmd test -debug
test.d(8): Error: constructor std.array.Appender!string.Appender.this (char[]
arr) is not callable using argument types (string)
---------------------------

No seg faults on this or the other examples. If there's some other issue,
please open a separate issue.

-- 
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