Bug 8416 – Assertion failure: '0' on line 2018 in file 'interpret.c'

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-22T15:07:00Z
Last change time
2012-11-13T23:41:14Z
Keywords
CTFE, ice
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2012-07-22T15:07:24Z
string Test(Options...)() { foreach (Option; Options) pragma(msg, Option.stringof); return null; } template Templ(Options...) { mixin(Test!Options()); } void main() { bool var; alias Templ!var test; }
Comment #1 by clugdbug — 2012-11-13T23:41:14Z
Slightly reduced, fails on 2.059: --- int bug8416(Options...)() { foreach (Option; Options) {} return 1; } void test8416() { bool var; static assert( bug8416!(var) == 1 ); } --- But this code works on github. Probably a duplicate of a recently fixed bug.