Summary: -H produces bad headers files if function defintion is
                    templated and have auto return value
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

# 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'
template c(T)
 c(T x)
return x;

Currenly std/math.d function abs in phobos have problem.


Reply via email to