Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 41 - gdmd commit suicide when using -femit-templates
Summary: gdmd commit suicide when using -femit-templates
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: 4.8.x
Hardware: x86_64 Linux
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2013-03-12 16:34 CET by deadalnix
Modified: 2013-03-12 18:57 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deadalnix 2013-03-12 16:34:47 CET
a.d :
// Empty

b.d :
module b;

import std.range;

class A {
}

void foo(A a) {
	a.repeat;
}

run : gdmd *.d -femit-templates

/opt/gdc/include/d/4.8.0/std/range.d: In member function 'front':
/opt/gdc/include/d/4.8.0/std/range.d:3681: internal compiler error: Segmentation fault
0x8ca1df crash_signal
	../../gcc-4.8-20130224/gcc/toplev.c:332
0x61b916 FuncDeclaration::toObjFile(int)
	../../gcc-4.8-20130224/gcc/d/d-glue.cc:196
0x6017ef AttribDeclaration::toObjFile(int)
	../../gcc-4.8-20130224/gcc/d/dfrontend/toobj.c:1432
0x600fef StructDeclaration::toObjFile(int)
	../../gcc-4.8-20130224/gcc/d/dfrontend/toobj.c:1152
0x6019ce TemplateInstance::toObjFile(int)
	../../gcc-4.8-20130224/gcc/d/dfrontend/toobj.c:1499
0x61c227 Module::genobjfile(int)
	../../gcc-4.8-20130224/gcc/d/d-glue.cc:370
0x60cd9f d_parse_file()
	../../gcc-4.8-20130224/gcc/d/d-lang.cc:1081
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gdcproject.org/bugzilla> for instructions.