www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12577] New: ice on compile time struct field access


          Issue ID: 12577
           Summary: ice on compile time struct field access
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: ellery-newcomer utulsa.edu

the code:

template CppClass() {

    CppClassMixins BuildCppClassMixins() {
        foreach(inh; Options.Inherits) {

    enum Mixins = BuildCppClassMixins;
    pragma(msg, Mixins.def);

struct CppClassMixins{

mixin CppClass!();

the fireworks:

$ dmd error2.d
error2.d(2): Error: undefined identifier Opts
dmd: interpret.c:357: virtual void
Statement::ctfeCompile(CompiledCtfeFunction*): Assertion `0' failed.
Aborted (core dumped)

Apr 13 2014