[Issue 4269] Regression(2.031): invalid type accepted if evaluated while errors are gagged

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 30 07:58:05 PDT 2011


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



--- Comment #7 from yebblies <yebblies at gmail.com> 2011-08-31 00:58:01 EST ---
(In reply to comment #6)
> I think there are a couple of different issues here. Some involve forward
> referenced declarations, as you've said.
> But some of these occur because they have semantic run while errors are
> _incorrectly_ gagged. In particular, when semantic3 is run on a function,
> errors shouldn't be gagged unless the function is part of a template which was
> speculatively instantiated. I'm halfway through a patch for this.

Does your gagging solution fix the problem for all semantic passes, or just
semantic3?  I couldn't think of a way to do it without rewinding semantic on
error, that gets error messages appearing in the right places.  Since you've
got it under control, I'll work on something else.

Should I close the pull request, does your patch cover that?

-- 
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