[Issue 2711] -H produces bad headers files if function defintion is templated and have auto return value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 27 10:34:34 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=2711

Ilya Lyubimov <villytiger at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |villytiger at gmail.com
         Resolution|FIXED                       |---

--- Comment #3 from Ilya Lyubimov <villytiger at gmail.com> ---
I got the same problem (only with template) on version 2.065.

# cat header.d
auto c(T)(T x) {
        return x;
}
# dmd -c -H header.d
# cat header.di
// D import file generated from 'header.d'
c(T)(T x)
{
        return x;
}

--


More information about the Digitalmars-d-bugs mailing list