www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7159] New: Forward reference when casting auto return method

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

           Summary: Forward reference when casting auto return method
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: robert octarineparrot.com


--- Comment #0 from Robert Clipsham <robert octarineparrot.com> 2011-12-23
14:02:12 GMT ---
The following:
----
class HomeController {
    void* foo() {
        return cast(void*)&HomeController.displayDefault;
    }
    auto displayDefault() {
        return 1;
    }
}
----

Gives the error:
----
merge.d(3): Error: forward reference to this.HomeController.displayDefault
----
When compiled with dmd 2.057 on ubuntu 32. Changing the return type of
displayDefault to anything other than auto fixes the error. Possibly related to
http://d.puremagic.com/issues/show_bug.cgi?id=5933

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 23 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7159


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-02-19 07:31:40 PST ---
https://github.com/D-Programming-Language/dmd/pull/535

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



--- Comment #2 from github-bugzilla puremagic.com 2012-11-19 17:55:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a9bb24772b47cef1df237c7fdf95c52e3c27c418
fix Issue 7159 - Forward reference when casting auto return method

https://github.com/D-Programming-Language/dmd/commit/2ba68e1db6cf3b2d19dfe4d3f7909ee67948bad3
Merge pull request #535 from 9rnsr/fix5933

Issue 5933 & 7159 - Resolve forward reference to auto-return member function

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



--- Comment #3 from Kenji Hara <k.hara.pg gmail.com> 2013-01-23 22:52:00 PST ---
(In reply to comment #1)
 https://github.com/D-Programming-Language/dmd/pull/535

That was a wrong change, and it had been reverted. A new pull request is: https://github.com/D-Programming-Language/dmd/pull/1543 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 23 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7159



--- Comment #4 from github-bugzilla puremagic.com 2013-01-24 14:27:53 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3d5528e985270fe34a7298581df63958c88e506c
fix Issue 7159 - Forward reference when casting auto return method

https://github.com/D-Programming-Language/dmd/commit/de4f8f6bf8dc9fcc1730ea4d7f2bbd3e74880f08
Merge pull request #1543 from 9rnsr/fix5933

Issue 5933 & 7159 & 9377 - Invoke function semantic3 correctly where it is
required.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 24 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7159


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Platform|Other                       |All
         Resolution|                            |FIXED


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