http://d.puremagic.com/issues/show_bug.cgi?id=8982
Summary: Assertion failure: '0' on line 353 in file
'ctfeexpr.c'
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Walter Bright <[email protected]> 2012-11-08
13:28:20 PST ---
The following:
----------------------
import std.traits;
struct Vector
{
float x,y,z,w;
immutable Vector one = Vector(1,1,1,1);
}
void func(int x = 10, ref const Vector v = Vector(1,1,1,1));
pragma(msg, ParameterDefaultValueTuple!func);
-------------------------
produces:
bar.d(10): Error: Vector(1F,1F,1F,1F) is not an lvalue
Assertion failure: '0' on line 353 in file 'ctfeexpr.c'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------