[Issue 6778] New: Internal error on parsing functions with arguments on which opOpAssign is invoked
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 7 04:45:03 PDT 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 at puremagic.com
ReportedBy: armin.kazmi at tu-dortmund.de
--- Comment #0 from Armin Kazmi <armin.kazmi at 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: -------
More information about the Digitalmars-d-bugs
mailing list