Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 10, 2008 [Issue 1780] New: Type tuple deduction failure for class templates | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1780 Summary: Type tuple deduction failure for class templates Product: D Version: 2.009 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: paul_m_doc@hotmail.com Type arguments of class templates should be deducible with the following: template Tuple(Ts ...) { alias Ts Tuple; } template Decode( T ) { alias Tuple!() Types; } template Decode( T : TT!(Us), alias TT, Us... ) { alias Us Types; } struct S2(T1, T2) {} // should extract tuple (bool,short) but matches the first specialisation alias Decode!( S2!(bool,short) ).Types SQ2; // --> SQ2 is empty tuple! ----------------- Issue #1779 tries to workaround this failure by decoding a fixed number of arguments but even that crashes the compiler. -- |
May 20, 2012 [Issue 1780] Type tuple deduction failure for class templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1780 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-20 09:51:07 PDT --- https://github.com/D-Programming-Language/dmd/pull/958 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 20, 2012 [Issue 1780] Type tuple deduction failure for class templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1780 --- Comment #2 from github-bugzilla@puremagic.com 2012-05-20 12:48:18 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/71785b48ea16a47e62654f1134cff2eac372f7dc fix Issue 1780 - Type tuple deduction failure for class templates https://github.com/D-Programming-Language/dmd/commit/ed68238cd1e5a7aec454840ee11e04580f974855 Merge pull request #958 from 9rnsr/fix_tided Issue 1780 & 3608 & 8125 - Fix TypeInstance deduction problems -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 20, 2012 [Issue 1780] Type tuple deduction failure for class templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1780 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation