http://bugzilla.gdcproject.org/show_bug.cgi?id=55
--- Comment #2 from Iain Buclaw <ibuc...@gdcproject.org> 2013-05-24 07:32:16 UTC --- (In reply to comment #0) > Created attachment 38 [details] > 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. This is also documented on the dustmite site as known not to work. :-) -- Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.