www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12038] New: alias this and &this cause ICE

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

           Summary: alias this and &this cause ICE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-01-30
09:38:00 EET ---
bool f(void* p);

struct S
{
     property p() { f(&this); }
    alias p this;
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 29 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12038



--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2014-01-30
10:51:33 EET ---
Workaround: Cast to void* explicitly before calling the function.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12038


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

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


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2014-01-30 01:08:31 PST ---
https://github.com/D-Programming-Language/dmd/pull/3179

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12038



--- Comment #3 from github-bugzilla puremagic.com 2014-01-30 16:40:55 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/033a1bfa360153b88bbd80c61012bd282f26b0d9
fix Issue 12038 - alias this and &this cause ICE

https://github.com/D-Programming-Language/dmd/commit/7e97423d070bf73258b559242f83963edf574357
Merge pull request #3179 from 9rnsr/fix12038

Issue 12038 - alias this and &this cause ICE

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12038


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

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


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12038



--- Comment #4 from github-bugzilla puremagic.com 2014-02-01 04:50:54 PST ---
Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3aa239bbf81657ccb009ca5c552725464b64008d
Merge pull request #3179 from 9rnsr/fix12038

Issue 12038 - alias this and &this cause ICE

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