[Issue 4302] Regression(2.046, 1.061): compiler errors using startsWith in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 20 22:25:30 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4302
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|D2 |D1 & D2
Summary|Regression(2.046): compiler |Regression(2.046, 1.061):
|errors using startsWith in |compiler errors using
|CTFE |startsWith in CTFE
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-08-20 22:25:27 PDT ---
Reduced test case shows it doesn't require template constraints, and applies to
D1 as well. Passes on D1.060, fails on D1.061.
-----
template fail4302() {
static assert(0);
}
template bug4302() {
alias fail4302!() bad;
}
static if (is(bug4302!())) {}
--------
// And this case broke one of my early attempts to fix it
template tough4302()
{
template bar()
{
template far()
{
static assert(0);
}
alias far!() par;
}
static if (is(bar!())) {}
}
alias tough4302!() tougher;
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list