[Issue 5461] Invalid declaration for auto functions in .di files generated by DMD -H

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 9 10:03:34 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=5461



--- Comment #5 from LightBender <adamw at prospectivesoftware.com> 2012-05-09 10:04:56 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > ?
> > git dmd still produces 'auto foo();' for me.
> > 
> > I think the patch could be more complex though.
> > If it's a Voldemort type the whole body needs to be included.
> > But what if it's a "simple" type? Then you could just print out the inferred
> > type.
> 
> This pull fixes this problem and a bunch of others:
> https://github.com/D-Programming-Language/dmd/pull/928. However, it currently
> fails to build on Linux and fails the unittests on Windows thanks to a problem
> with the dur template function in std.datetime. The solution used by this pull
> is to include the function body of the auto-function as that was needed to
> allow Phobos to build correctly using the DRT DI files.

I forgot to mention that DMD does not know the type of an auto-function when DI
files are generated. No semantic analysis has been performed and since semantic
analysis could change the layout of a module you wouldn't want it to be
performed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list