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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Armin Kazmi <[email protected]> 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: -------