[Issue 3792] Regression: "non-constant expression" for a template inside a struct using a struct initializer

2010-06-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3792 --- Comment #7 from Don 2010-06-24 13:55:11 PDT --- The D2 version of this code never compiled without error. struct S { int x; template T(int val) { enum S T = { x: val }; } } const x = S.T!(0); It fails to compile becaus

[Issue 3792] Regression: "non-constant expression" for a template inside a struct using a struct initializer

2010-05-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3792 --- Comment #6 from Don 2010-05-31 06:11:36 PDT --- Reduced test case for the case that still fails. It's the same, except that the struct member is explicitly named in the struct initializer. struct S { int x; template T(int val) {

[Issue 3792] Regression: "non-constant expression" for a template inside a struct using a struct initializer

2010-03-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3792 Fawzi Mohamed changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 3792] Regression: "non-constant expression" for a template inside a struct using a struct initializer

2010-03-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3792 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 3792] Regression: "non-constant expression" for a template inside a struct using a struct initializer

2010-03-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3792 --- Comment #3 from Fawzi Mohamed 2010-03-08 00:27:59 PST --- This bug is listed as fixed in 1.057, but while the reduced case by Matti Niemenmaa is indeed fixed, the original testcase still fails (I am pointing it out so that it stays open...)