www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 142] New: ICE, FuncDeclaration::ctfeCompile(): Assertion

Date: Sun, 20 Jul 2014 20:19:44 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=142

            Bug ID: 142
           Summary: ICE, FuncDeclaration::ctfeCompile(): Assertion
                    `semanticRun == PASSsemantic3done' failed
           Product: GDC
           Version: 4.9.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: art.08.09 gmail.com

import gcc.attribute;
    attribute("noinline") int g()() { return 42; }
   void main() {
      enum fails = g();
   }

fails to compile:

cc1d: ../../gcc/d/dfrontend/interpret.c:672: void
FuncDeclaration::ctfeCompile(): Assertion `semanticRun == PASSsemantic3done'
failed.
/sw/x64/d49-2.065/include/d/4.9.1/gcc/attribute.di:28: internal compiler error:
Aborted
0xa81fef crash_signal
    ../../gcc/toplev.c:337
0x605137 FuncDeclaration::ctfeCompile()
    ../../gcc/d/dfrontend/interpret.c:672
0x60589c FuncDeclaration::interpret(InterState*, Array<Expression*>*,
Expression*)
    ../../gcc/d/dfrontend/interpret.c:796
0x612cf7 FuncDeclaration::interpret(InterState*, Array<Expression*>*,
Expression*)
    ../../gcc/d/dfrontend/interpret.c:791
0x612cf7 CallExp::interpret(InterState*, CtfeGoal)
    ../../gcc/d/dfrontend/interpret.c:4955
0x606dd2 Expression::ctfeInterpret()
    ../../gcc/d/dfrontend/interpret.c:709
0x6a03af build_attributes
    ../../gcc/d/d-codegen.cc:851
0x6acd9a setup_symbol_storage(Dsymbol*, tree_node*, bool)
    ../../gcc/d/d-objfile.cc:1747
0x69e9ac FuncDeclaration::toSymbol()
    ../../gcc/d/d-decls.cc:448
0x6aedef FuncDeclaration::toObjFile(int)
    ../../gcc/d/d-objfile.cc:1104
0x6abf9e TemplateInstance::toObjFile(int)
    ../../gcc/d/d-objfile.cc:877
0x6b079e Module::genobjfile(int)
    ../../gcc/d/d-objfile.cc:1427
0x69d710 d_parse_file()
    ../../gcc/d/d-lang.cc:1139
Please submit a full bug report,

-- 
You are receiving this mail because:
You are watching all bug changes.
Jul 20 2014