http://d.puremagic.com/issues/show_bug.cgi?id=10521
Summary: Struct wrong constructor chosen.
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Damian <[email protected]> 2013-07-01 09:44:59 PDT ---
// Test case, worked fine in 2.062
struct Test
{
enum DefaultSize = 256;
int size;
this(int sz = DefaultSize )
{
size = sz;
}
}
void main()
{
Test st_test;
assert(st_test.size == Test.DefaultSize); // Wrong constructor chosen!
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------