www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10044] New: Wrong di generation for IsExp with TemplateParameterList

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg 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: -------
May 08 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10044


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-05-08 02:36:21 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1976

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 08 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10044



--- Comment #2 from github-bugzilla puremagic.com 2013-05-08 10:20:50 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 08 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10044


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 08 2013