www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 47] New: ICE when mixing in functions containing inline asm

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


           Summary: ICE when mixing in functions containing inline asm
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: jerro.public gmail.com


A test case:

template Foo()
{
    void bar()
    {
        asm { "nop"; }
    }
}

mixin Foo!();

When building this with GDC 7907920a3ef0a26594c934, using gcc 4.8.0 RC1, I get:

 debian:~/tmp$ gdc  tmp.d -c
cc1d: internal compiler error: Segmentation fault
0x8cac9f crash_signal
        ../../gcc-4.8.0-RC-20130316/gcc/toplev.c:332
0x635535 ExtAsmStatement::syntaxCopy()
        ../../gcc-4.8.0-RC-20130316/gcc/d/d-asmstmt.cc:74
0x5e473a CompoundStatement::syntaxCopy()
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/statement.c:510
0x5e473a CompoundStatement::syntaxCopy()
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/statement.c:510
0x58b4f9 FuncDeclaration::syntaxCopy(Dsymbol*)
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/func.c:107
0x567eb2 Dsymbol::arraySyntaxCopy(ArrayBase<Dsymbol>*)
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/dsymbol.c:766
0x5fb90f TemplateMixin::semantic(Scope*)
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/template.c:6580
0x5fb90f TemplateMixin::semantic(Scope*)
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/template.c:6391
0x5c6d17 Module::semantic()
        ../../gcc-4.8.0-RC-20130316/gcc/d/dfrontend/module.c:714
0x60ca8b d_parse_file()
        ../../gcc-4.8.0-RC-20130316/gcc/d/d-lang.cc:960
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.
Mar 20 2013