www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6778] New: Internal error on parsing functions with arguments on which opOpAssign is invoked

reply d-bugmail puremagic.com writes:
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



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: -------
Oct 07 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6778




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: -------
Oct 07 2011
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Apr 28 2012