www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11327] New: Regression (2.059): ICE in a recursive UFCS call

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

           Summary: Regression (2.059): ICE in a recursive UFCS call
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



11:47:28 PDT ---
-----
S call(S)(S s)
{
    // accidental recursive call to UFCS function
    return s.call();
}

struct S
{
}

void main()
{
    S s;
    call(s);
}
-----

2.058:
$ dmd ice.d
 ice.d(4): Error: no property 'call' for type 'S'
 ice.d(14): Error: template instance ice.call!(S) error instantiating
2.059: $ dmd ice.d
 crash
I don't have a stack trace right now, I need to reinstall my windbg symbols. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 22 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11327




11:48:17 PDT ---

 2.059:
That should say 2.059+, as all versions after it ICE as well. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 22 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11327






 2.059:
That should say 2.059+, as all versions after it ICE as well.
The OP code compilation succeeds correctly with 2.059 and git-head. And executing generated test.exe will crash correctly by infinite recursion. But you are not using `-run` switch. So, I'm not sure what is the problem... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 22 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11327


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

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



06:15:50 PDT ---



 2.059:
That should say 2.059+, as all versions after it ICE as well.
The OP code compilation succeeds correctly with 2.059 and git-head. And executing generated test.exe will crash correctly by infinite recursion. But you are not using `-run` switch. So, I'm not sure what is the problem...
Apologies, it seems I've misinterpreted the error dialog box belonging to DMD rather than the test-case itself. This is not a valid bug report. Thanks! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 23 2013