Bug 3685 – Regression(D1 only): DMD silently exits on valid code

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Linux
Creation time
2010-01-07T07:20:00Z
Last change time
2014-04-18T09:12:05Z
Keywords
ice-on-valid-code, patch
Assigned to
nobody
Creator
nfxjfg

Comments

Comment #0 by nfxjfg — 2010-01-07T07:20:36Z
There's two things wrong with this: 1. it rejects valid code 2. it doesn't output an error message, it only does exit(1) //fails to compile with 1.055 (dmd silently exits) //succeeds with 1.053 (successfully compiles) void x(T)() { static assert(false); } template y(T) { const bool y = is(typeof( { x!(T)(); } )); } static assert(!y!(int));
Comment #1 by matti.niemenmaa+dbugzilla — 2010-01-08T08:27:28Z
*** Issue 3691 has been marked as a duplicate of this issue. ***
Comment #2 by clugdbug — 2010-01-08T22:03:58Z
This is a trivial. D1 template.c, line 3500. error("error instantiating"); if (tinst) { tinst->printInstantiationTrace(); + if (!global.gag) fatal(); }
Comment #3 by bugzilla — 2010-01-23T02:03:34Z
Changeset 351
Comment #4 by bugzilla — 2010-01-30T22:43:51Z
fixed dmd 1.056