Bug ID 143
Summary ICE, segfaults, apparently the compiler doesn't like the "%s" string when reporting error
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

template f(A) {}
void g(A)(A);
f!({g("%s");}) _;

causes:

cc1d: internal compiler error: Segmentation fault
0xa81fef crash_signal
    ../../gcc/toplev.c:337
0x6e53eb verror(Loc, char const*, __va_list_tag*, char const*, char const*,
char const*)
    ../../gcc/d/d-glue.cc:191
0x5b094d Dsymbol::error(char const*, ...)
    ../../gcc/d/dfrontend/dsymbol.c:633
0x68e723 TemplateInstance::findBestMatch(Scope*, Array<Expression*>*)
    ../../gcc/d/dfrontend/template.c:6377
0x692cf8 TemplateInstance::semantic(Scope*, Array<Expression*>*)
    ../../gcc/d/dfrontend/template.c:5317
0x692cf8 TemplateInstance::semantic(Scope*)
    ../../gcc/d/dfrontend/template.c:5202
0x6404fa TypeInstance::resolve(Loc, Scope*, Expression**, Type**, Dsymbol**,
bool)
    ../../gcc/d/dfrontend/mtype.c:7284
0x6404fa TypeInstance::semantic(Loc, Scope*)
    ../../gcc/d/dfrontend/mtype.c:7301
0x5a27c9 VarDeclaration::semantic(Scope*)
    ../../gcc/d/dfrontend/declaration.c:884
0x649fbd Module::semantic()
    ../../gcc/d/dfrontend/module.c:744
0x69d293 d_parse_file()
    ../../gcc/d/d-lang.cc:1007
Please submit a full bug report,


You are receiving this mail because: