February 04, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7437

           Summary: DMD enters infinite loop during overload resolution
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2012-02-04 09:58:40 PST ---
With DMD 2.058head, the compilation of the following code does not terminate. -v output suggests DMD hangs in semantic2.

class A{
    A x()const{return new A;}
    alias x this;
}

int foo(immutable(A) x){return 1;}
int foo(A x){return 2;}

static assert(foo(new immutable(A)) == 1);

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


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-05 05:01:25 EST ---
I can't reproduce this.  Are you sure you ran make clean before building?

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



--- Comment #2 from timon.gehr@gmx.ch 2012-02-04 13:08:47 PST ---
(In reply to comment #1)
> I can't reproduce this.  Are you sure you ran make clean before building?

Yes. I just ran these commands and tested again, to be sure:

git pull; make -fposix.mak clean; make -fposix.mak

The problem is also present in DMD 2.057 from the package on the website.

I am running Ubuntu on a x86_64 system.

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


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #3 from SomeDude <lovelydear@mailmetrash.com> 2012-04-19 15:15:39 PDT ---
On 2.059 Win32

PS E:\DigitalMars\dmd2\samples> rdmd bug.d
Stack overflow

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


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

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


--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2012-06-27 19:43:20 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1028

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zheny@list.ru


--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-21 14:24:57 PST ---
*** Issue 9318 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7437



--- Comment #6 from github-bugzilla@puremagic.com 2013-03-06 18:04:17 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ef9a73ca6719172c51b1abf0b94d238d1df87674 Merge pull request #1028 from 9rnsr/fix_aliasthis

Issue 7437,7980,8053 - Partial fix for stack overflow with recursive alias this

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7437


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 25, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7437



--- Comment #7 from github-bugzilla@puremagic.com 2013-03-24 20:57:18 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ef9a73ca6719172c51b1abf0b94d238d1df87674 Merge pull request #1028 from 9rnsr/fix_aliasthis

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home