Thread overview
[Issue 2711] -H produces bad headers files if function defintion is templated and have auto return value
Jul 27, 2014
Ilya Lyubimov
Jul 28, 2014
Kenji Hara
July 27, 2014
https://issues.dlang.org/show_bug.cgi?id=2711

Ilya Lyubimov <villytiger@gmail.com> changed:

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

--- Comment #3 from Ilya Lyubimov <villytiger@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;
}

--
July 28, 2014
https://issues.dlang.org/show_bug.cgi?id=2711

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

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

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Ilya Lyubimov from comment #3)
> 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;
> }

The regression in 2.065 has been fixed in issue 12266.

--
June 10, 2015
https://issues.dlang.org/show_bug.cgi?id=2711

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--