Bug 10044 – Wrong di generation for IsExp with TemplateParameterList

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-08T02:17:00Z
Last change time
2013-05-08T14:10:44Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-05-08T02:17:16Z
---- 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"! { } } }
Comment #1 by k.hara.pg — 2013-05-08T02:36:21Z
Comment #2 by github-bugzilla — 2013-05-08T10:20:50Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/68826750815b6f4d2609a3831c3a8fbf3f759308 fix Issue 10044 - Wrong di generation for IsExp with TemplateParameterList https://github.com/D-Programming-Language/dmd/commit/b95d8df7083d96a32ccd3c694e85a4471c3f0559 Merge pull request #1976 from 9rnsr/fix_comma_fmt [REG2.063a] fix issue 10044, and more adding a space after comma