Thread overview
[Issue 9176] New: Incorrect gagging of fwdref error in alias this semantics
Dec 18, 2012
Kenji Hara
Dec 18, 2012
Kenji Hara
Dec 18, 2012
Kenji Hara
December 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9176

           Summary: Incorrect gagging of fwdref error in alias this
                    semantics
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-18 03:28:21 PST ---
This code prints `false` in compile time. But dmd does not report a forward reference error in S.get, and compilation itself *wrongly* succeeds.

void foo(int x) {}
pragma(msg, is(typeof(foo(S()))));
struct S {
    auto get() { return get(); }
    alias get this;
}

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


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

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


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-18 04:41:27 PST ---
https://github.com/D-Programming-Language/dmd/pull/1384

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



--- Comment #2 from github-bugzilla@puremagic.com 2012-12-18 05:55:45 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bfb90a4a51c9499152382fd1ed974ec34dfb30ab fix Issue 9176 - Incorrect gagging of fwdref error in alias this semantics

https://github.com/D-Programming-Language/dmd/commit/a739c13caa662eba6c8bc2493c41368068541f02 Merge pull request #1384 from 9rnsr/fix8556

Fixup pull#1380, and fix Issue 9176 - Incorrect gagging of fwdref error in alias this semantics

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


Kenji Hara <k.hara.pg@gmail.com> 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: -------