[Issue 6385] isInputRange!(ubyte[2u]) is a failure when used in global scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 26 04:37:07 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6385
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-08-26 04:37:04 PDT ---
Reduced test case. It seems this bug is quite complicated, it requires two
semantic errors, plus uniform function call syntax, and a template constraint:
template template6385(T)
{
enum template6385 = false;
}
void bug6385(A)(A a) if (template6385!A)
{
this_is_an_error();
}
const bool bool6385 =
is(typeof(
{
ubyte[2] r;
this_is_another_error();
r.bug6385;
}()
));
The test case was accidentally fixed by commit:
https://github.com/D-Programming-Language/dmd/commit/dc83c
but I don't really understand why. It seems to be just luck.
--
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