Thread overview
[Issue 6778] New: Internal error on parsing functions with arguments on which opOpAssign is invoked
Oct 07, 2011
Armin Kazmi
Oct 07, 2011
Armin Kazmi
Apr 28, 2012
Walter Bright
October 07, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6778

           Summary: Internal error on parsing functions with arguments on
                    which opOpAssign is invoked
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: armin.kazmi@tu-dortmund.de


--- Comment #0 from Armin Kazmi <armin.kazmi@tu-dortmund.de> 2011-10-07 04:44:17 PDT ---
The following code sample fails in all cases:

import std.stdio;
void main()
{
    class test
    {
        this(double t)
        {

        }
    };

    struct testStruct
    {
        this(double t)
        {
        }
    };

    double b = 2;
    double c = 4;

    void funcTest(double t)
    {
    }

    //testStruct( b /= c ); // <-- Internal error: backend/cg87.c 202 when
pulled in
    //new test( b /= c ); // <-- Internal error: backend/cg87.c 202 when pulled
in
    funcTest(b *= c);   // <-- Internal error: backend/cg87.c 202

    writefln("b = %1$s", b);
}

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



--- Comment #1 from Armin Kazmi <armin.kazmi@tu-dortmund.de> 2011-10-07 04:44:43 PDT ---
Created an attachment (id=1036)
Test sample file

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


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2012-04-28 01:56:59 PDT ---
This works without error on dmd 2.060 latest, on Linux with -m32 and -m64.

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