Thread overview | ||||||
---|---|---|---|---|---|---|
|
December 22, 2013 template9.d again | ||||
---|---|---|---|---|
| ||||
It seems there are still some issues with template9.d. It doesn't show up in the test suite as it only runs one test for template9.d (why?) and that test doesn't use the '-g' parameter. But when compiling template9.d with '-g': /opt/gdc/bin/gdc -g runnable/template9.d -o template9.exe the compiler crashes: 0xa5bb8f crash_signal ../../gcc-4.9-20131201/gcc/toplev.c:336 0x7ac07e dwarf2out_decl(tree_node*) ../../gcc-4.9-20131201/gcc/dwarf2out.c:20602 0x9b2e52 rest_of_type_compilation(tree_node*, int) ../../gcc-4.9-20131201/gcc/passes.c:280 0x69832f EnumDeclaration::toObjFile(int) ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:663 0x6c9057 DeclarationExp::toElem(IRState*) ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1972 0x6c8206 Expression::toElemDtor(IRState*) ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1702 0x6cc9d7 ExpStatement::toIR(IRState*) ../../gcc-4.9-20131201/gcc/d/d-toir.cc:533 0x6cc8d8 CompoundStatement::toIR(IRState*) ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501 0x6cc8d8 CompoundStatement::toIR(IRState*) ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501 0x69a28e FuncDeclaration::toObjFile(int) ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1265 0x69cc46 Module::genobjfile(int) ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1452 0x68943f d_parse_file() ../../gcc-4.9-20131201/gcc/d/d-lang.cc:1132 |
December 22, 2013 Re: template9.d again | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johannes Pfau | On 22 December 2013 00:06, Johannes Pfau <nospam@example.com> wrote:
> It seems there are still some issues with template9.d. It doesn't show up in the test suite as it only runs one test for template9.d (why?) and that test doesn't use the '-g' parameter. But when compiling template9.d with '-g':
>
> /opt/gdc/bin/gdc -g runnable/template9.d -o template9.exe
>
> the compiler crashes:
> 0xa5bb8f crash_signal
> ../../gcc-4.9-20131201/gcc/toplev.c:336
> 0x7ac07e dwarf2out_decl(tree_node*)
> ../../gcc-4.9-20131201/gcc/dwarf2out.c:20602
> 0x9b2e52 rest_of_type_compilation(tree_node*, int)
> ../../gcc-4.9-20131201/gcc/passes.c:280
> 0x69832f EnumDeclaration::toObjFile(int)
> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:663
> 0x6c9057 DeclarationExp::toElem(IRState*)
> ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1972
> 0x6c8206 Expression::toElemDtor(IRState*)
> ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1702
> 0x6cc9d7 ExpStatement::toIR(IRState*)
> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:533
> 0x6cc8d8 CompoundStatement::toIR(IRState*)
> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501
> 0x6cc8d8 CompoundStatement::toIR(IRState*)
> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501
> 0x69a28e FuncDeclaration::toObjFile(int)
> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1265
> 0x69cc46 Module::genobjfile(int)
> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1452
> 0x68943f d_parse_file()
> ../../gcc-4.9-20131201/gcc/d/d-lang.cc:1132
>
Thanks, lets raise a bug on this.
|
December 23, 2013 Re: template9.d again | ||||
---|---|---|---|---|
| ||||
On 22 December 2013 21:36, Iain Buclaw <ibuclaw@gdcproject.org> wrote:
> On 22 December 2013 00:06, Johannes Pfau <nospam@example.com> wrote:
>> It seems there are still some issues with template9.d. It doesn't show up in the test suite as it only runs one test for template9.d (why?) and that test doesn't use the '-g' parameter. But when compiling template9.d with '-g':
>>
>> /opt/gdc/bin/gdc -g runnable/template9.d -o template9.exe
>>
>> the compiler crashes:
>> 0xa5bb8f crash_signal
>> ../../gcc-4.9-20131201/gcc/toplev.c:336
>> 0x7ac07e dwarf2out_decl(tree_node*)
>> ../../gcc-4.9-20131201/gcc/dwarf2out.c:20602
>> 0x9b2e52 rest_of_type_compilation(tree_node*, int)
>> ../../gcc-4.9-20131201/gcc/passes.c:280
>> 0x69832f EnumDeclaration::toObjFile(int)
>> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:663
>> 0x6c9057 DeclarationExp::toElem(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1972
>> 0x6c8206 Expression::toElemDtor(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1702
>> 0x6cc9d7 ExpStatement::toIR(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:533
>> 0x6cc8d8 CompoundStatement::toIR(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501
>> 0x6cc8d8 CompoundStatement::toIR(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501
>> 0x69a28e FuncDeclaration::toObjFile(int)
>> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1265
>> 0x69cc46 Module::genobjfile(int)
>> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1452
>> 0x68943f d_parse_file()
>> ../../gcc-4.9-20131201/gcc/d/d-lang.cc:1132
>>
>
>
> Thanks, lets raise a bug on this.
Not a template-related bug:
|
December 23, 2013 Re: template9.d again | ||||
---|---|---|---|---|
| ||||
On 22 December 2013 21:36, Iain Buclaw <ibuclaw@gdcproject.org> wrote:
> On 22 December 2013 00:06, Johannes Pfau <nospam@example.com> wrote:
>> It seems there are still some issues with template9.d. It doesn't show up in the test suite as it only runs one test for template9.d (why?) and that test doesn't use the '-g' parameter. But when compiling template9.d with '-g':
>>
>> /opt/gdc/bin/gdc -g runnable/template9.d -o template9.exe
>>
>> the compiler crashes:
>> 0xa5bb8f crash_signal
>> ../../gcc-4.9-20131201/gcc/toplev.c:336
>> 0x7ac07e dwarf2out_decl(tree_node*)
>> ../../gcc-4.9-20131201/gcc/dwarf2out.c:20602
>> 0x9b2e52 rest_of_type_compilation(tree_node*, int)
>> ../../gcc-4.9-20131201/gcc/passes.c:280
>> 0x69832f EnumDeclaration::toObjFile(int)
>> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:663
>> 0x6c9057 DeclarationExp::toElem(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1972
>> 0x6c8206 Expression::toElemDtor(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-elem.cc:1702
>> 0x6cc9d7 ExpStatement::toIR(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:533
>> 0x6cc8d8 CompoundStatement::toIR(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501
>> 0x6cc8d8 CompoundStatement::toIR(IRState*)
>> ../../gcc-4.9-20131201/gcc/d/d-toir.cc:501
>> 0x69a28e FuncDeclaration::toObjFile(int)
>> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1265
>> 0x69cc46 Module::genobjfile(int)
>> ../../gcc-4.9-20131201/gcc/d/d-objfile.cc:1452
>> 0x68943f d_parse_file()
>> ../../gcc-4.9-20131201/gcc/d/d-lang.cc:1132
>>
>
>
> Thanks, lets raise a bug on this.
Not a template related bug:
enum SA : int[3] { a = [1,2,3] }
SA sa;
|
Copyright © 1999-2021 by the D Language Foundation