www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 55] New: Internal compiler error: Segmentation fault in regex.d

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

             Bug #: 55
           Summary: Internal compiler error: Segmentation fault in regex.d
    Classification: Unclassified
           Product: GDC
           Version: development
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: pdewacht gmail.com


Created attachment 38
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=38
reduced source code

Compiler version: git head (272a77a8a78350518aabc5805cee623f773a3dba)
built with Debian's gcc 4.8.0-7

gdc -o dust dsplit.d dustmite.d
/opt/gdc/include/d/4.8/std/regex.d: In function 'initialMemory':
/opt/gdc/include/d/4.8/std/regex.d:3236: internal compiler error: Segmentation
fault
0x8f13bf crash_signal
    ../../gcc-4.8-4.8.0/src/gcc/toplev.c:332
0x6651dd ReturnStatement::toIR(IRState*)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-ir.cc:224
0x665ad8 CompoundStatement::toIR(IRState*)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-ir.cc:483
0x63d57a FuncDeclaration::toObjFile(int)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:1027
0x639c6e AttribDeclaration::toObjFile(int)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:90
0x63be06 StructDeclaration::toObjFile(int)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:141
0x639e36 TemplateInstance::toObjFile(int)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:740
0x63e106 Module::genobjfile(int)
    ../../gcc-4.8-4.8.0/src/gcc/d/d-objfile.cc:1198
0x62fa22 d_parse_file()
    ../../gcc-4.8-4.8.0/src/gcc/d/d-lang.cc:1085
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.
make: *** [all] Error 1


==> dsplit.d <==
import std.string;

==> dustmite.d <==
import std.algorithm;
import std.string;
import std.regex;

void applyNoRemoveRegex(string[] noRemove)
{
    string name;
    canFind!((a){return !match(name, a);})(noRemove);
}



Source code is reduced from DustMite, by DustMite-with-that-function-removed.

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
May 23 2013