Bug 14568 – [REG2.067] gaggederrors ICE

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-10T20:44:00Z
Last change time
2015-06-17T21:05:39Z
Keywords
ice, pull
Assigned to
nobody
Creator
vlevenfeld

Comments

Comment #0 by vlevenfeld — 2015-05-10T20:44:00Z
this is an invalid program, but instead of an error message gives this: dmd: statement.c:752: ErrorStatement::ErrorStatement(): Assertion `global.gaggedErrors || global.errors' failed. program: struct Interval () { auto left = INVALID; auto opAssign ()(Interval){left;} } auto interval (T)(T point) { Interval!(); } alias Instantiate (alias symbol, Args...) = symbol!Args; template Match (patterns...) { static if (__traits(compiles, Instantiate!(patterns[0]))) alias Match = patterns[0]; else static if (patterns.length == 1) {} } template SubOps (Args...) { auto opIndex () { template IntervalType (T...) { alias Point () = typeof(T.interval); alias IntervalType = Match!(Point); } alias Subspace = IntervalType!(Args); } } struct Nat {mixin SubOps!(null);}
Comment #1 by k.hara.pg — 2015-06-01T23:01:53Z
Comment #2 by github-bugzilla — 2015-06-02T15:14:46Z
Comment #3 by github-bugzilla — 2015-06-17T21:05:39Z