Thread overview |
---|
September 05, 2007 [Issue 1474] New: regression: const struct with an initializer not recognized as a valid alias template param | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1474 Summary: regression: const struct with an initializer not recognized as a valid alias template param Product: D Version: 1.021 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: h3r3tic@mat.uni.torun.pl template Foo(alias a) {} struct Bar {} const Bar bar = {}; alias Foo!(bar) baz; // ---- constaliasbug.d(6): template instance Foo!(Bar()) does not match any template declaration Works in dmd 1.020, works when the initializer is removed from "bar"'s declaration: 'const Bar bar;' (invalid in gdc, iirc), and works when 'bar' is not const. This bug breaks Bind, btw. -- |
September 06, 2007 [Issue 1474] regression: const struct with an initializer not recognized as a valid alias template param | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1474 matti.niemenmaa+dbugzilla@iki.fi changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |regression -- |
October 20, 2007 [Issue 1474] regression: const struct with an initializer not recognized as a valid alias template param | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1474 braddr@puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from braddr@puremagic.com 2007-10-20 04:08 ------- Fixed in 1.022/2.005 -- |
Copyright © 1999-2021 by the D Language Foundation