[Issue 4269] Regression(2.031): invalid type accepted if evaluated while errors are gagged
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 9 08:08:35 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4269
--- Comment #17 from yebblies <yebblies at gmail.com> 2012-02-10 03:08:33 EST ---
(In reply to comment #16)
> Even with the new patch, this example from comment 5 :
>
> static if(is(typeof(X3.init))) {}
> void X3(T3) { }
>
> is an ICE(glue.c) for 2.047 on. It generated an error on 2.045 and earlier. (On
> 2.046 it silently generated bad code). Perhaps it should be treated as a
> different bug.
Yep, different bug. The crash is due to an error in a parameter type not
resulting in TypeFunction::semantic returning terror. (Or at least, that and
the fact it reaches code generation due to this bug.) I swear I fixed this in
a pull request last year, but it must've been part of something that never got
accepted.
--
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