Thread overview
[Issue 4498] New: cannot get return type of a function returning a nested struct with typeof
Jul 24, 2010
Christian Kamm
Jul 03, 2012
Jonathan M Davis
Jul 03, 2012
Jonathan M Davis
July 24, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4498

           Summary: cannot get return type of a function returning a
                    nested struct with typeof
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kamm-removethis@incasoftware.de


--- Comment #0 from Christian Kamm <kamm-removethis@incasoftware.de> 2010-07-23 23:50:08 PDT ---
auto foo()
{
  struct S {}
  S s;
  return s;
}

static assert(is(typeof(foo()))); // fails

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


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com
           Severity|normal                      |major


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


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-07-02 22:47:47 PDT ---
Works in 2.060head.

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