[Issue 10044] New: Wrong di generation for IsExp with TemplateParameterList
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 8 02:17:19 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10044
Summary: Wrong di generation for IsExp with
TemplateParameterList
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-08 02:17:16 PDT ---
---- Code:
template Foo(T)
{
void bar() {
static if (is(T _ : X!TL, alias X, TL...)) {}
}
}
---- Command line:
$ dmd -o- -H test && type test.di
---- 2.062 output:
// D import file generated from 'test.d'
template Foo(T)
{
void bar()
{
static if(is(T _ : X!(TL),alias X,TL...))
{
}
}
}
---- 2.063 output:
DMD v2.063 DEBUG
// D import file generated from 'test.d'
template Foo(T)
{
void bar()
{
static if(is(T _ : X!(TL),TL...)) // lack of "alias X"!
{
}
}
}
--
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