Summary: Invalid declaration for auto functions in .di files
                    generated by DMD -H
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Nicolas Sicard <> 2011-01-19 12:00:51 PST ---
When compiling "complex" non-templated auto functions, e.g.:

auto foo() {
    struct Bar {
        int a;
    auto bar = Bar(42);
    return bar;

with -H option, the generated .di file contains:

auto foo();

which is a (rightly) invalid declaration statement. I think that either foo's
body should be included in the .di file or that a warning/error should be
thrown on compilation of such a function with the -H switch.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to