Thread overview
[Issue 4316] New: this(this) cannot become safe function.
Jun 15, 2010
SHOO
Oct 29, 2011
Kenji Hara
Dec 21, 2011
Kenji Hara
June 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4316

           Summary: this(this) cannot become safe function.
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: zan77137@nifty.com


--- Comment #0 from SHOO <zan77137@nifty.com> 2010-06-14 23:39:56 PDT ---
This code doesn't work!

-------------------------------

struct A
{
    @safe this(this) { }
}

@safe void main()
{
    A a;
    auto b = a; // Error: safe function 'main' cannot call system function
'__cpctor'
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 29, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4316


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid
         OS/Version|Windows                     |All


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-10-29 00:05:16 PDT ---
https://github.com/D-Programming-Language/dmd/pull/480

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


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

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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2011-12-20 23:22:48 PST ---
https://github.com/D-Programming-Language/dmd/commit/bc3995dd3df5874c71370e40082840cfc7cd975a

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