[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
Mon Jul 28 01:54:27 PDT 2014


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

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

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

--- Comment #4 from Kenji Hara <k.hara.pg at 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.

--


More information about the Digitalmars-d-bugs mailing list