www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 113] New: Internal compiler problem on shared argument of final

Date: Tue, 1 Apr 2014 18:01:28 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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

            Bug ID: 113
           Summary: Internal compiler problem on shared argument of final
                    interface method: in toElem, at d/d-elem.cc:2521
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: ncrashed gmail.com

I could not find reduced code example, but it fails on part of my opensource
project
https://github.com/DSoftOut/pgator/tree/611c4158bb3b54a0e773ff3f9924b50751a=
4041f

--------
source/client/test/testcase.d: In member function =E2=80=98insertRow=E2=80=
=99:
source/client/test/testcase.d:53: internal compiler error: in toElem, at
d/d-elem.cc:2521
0x65d8f3 StructLiteralExp::toElem(IRState*)
        ../../gcc-4.8.2/gcc/d/d-elem.cc:2521
0x626e07 d_build_call(TypeFunction*, tree_node*, tree_node*,
Array<Expression>*)
        ../../gcc-4.8.2/gcc/d/d-codegen.cc:2059
0x65a522 CallExp::toElem(IRState*)
        ../../gcc-4.8.2/gcc/d/d-elem.cc:1665
0x65a7c6 Expression::toElemDtor(IRState*)
        ../../gcc-4.8.2/gcc/d/d-elem.cc:1686
0x65f1b7 ExpStatement::toIR(IRState*)
        ../../gcc-4.8.2/gcc/d/d-toir.cc:533
0x65f0b8 CompoundStatement::toIR(IRState*)
        ../../gcc-4.8.2/gcc/d/d-toir.cc:501
0x62c4cb FuncDeclaration::toObjFile(int)
        ../../gcc-4.8.2/gcc/d/d-objfile.cc:1323
0x62889e AttribDeclaration::toObjFile(int)
        ../../gcc-4.8.2/gcc/d/d-objfile.cc:158
0x62889e AttribDeclaration::toObjFile(int)
        ../../gcc-4.8.2/gcc/d/d-objfile.cc:158
0x62ab7e InterfaceDeclaration::toObjFile(int)
        ../../gcc-4.8.2/gcc/d/d-objfile.cc:597
0x62ea66 Module::genobjfile(int)
        ../../gcc-4.8.2/gcc/d/d-objfile.cc:1510
0x61a362 d_parse_file()
        ../../gcc-4.8.2/gcc/d/d-lang.cc:1125
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.
FAIL
.dub/build/production-debug-linux.posix-x86_64-gdc-2DAE3A8239D715BBB06DA6C2=
58419CF1
pgator executable
Error executing command build: GDC compile run failed with exit code 1

Full exception: object.Exception source/dub/compilers/gdc.d(161): GDC compi=
le
run failed with exit code 1
----------------
dub(pure  safe bool std.exception.enforce!(bool).enforce(bool, lazy
const(char)[], immutable(char)[], ulong)+0x6b) [0x67346f]
dub(void
dub.compilers.gdc.GdcCompiler.invoke(const(dub.compilers.compiler.BuildSett=
ings),
const(dub.compilers.compiler.BuildPlatform))+0x380) [0x625074]
dub(void
dub.generators.build.BuildGenerator.buildWithCompiler(dub.generators.genera=
tor.GeneratorSettings,
dub.compilers.compiler.BuildSettings)+0x1f8) [0x62d234]
dub(void
dub.generators.build.BuildGenerator.performCachedBuild(dub.generators.gener=
ator.GeneratorSettings,
dub.compilers.compiler.BuildSettings, const(dub.package_.Package),
immutable(char)[], immutable(char)[])+0x462) [0x62b376]
dub(void
dub.generators.build.BuildGenerator.buildTarget(dub.generators.generator.Ge=
neratorSettings,
dub.compilers.compiler.BuildSettings, const(dub.package_.Package),
immutable(char)[])+0x2e1) [0x62ae2d]
dub(void
dub.generators.build.BuildGenerator.generateTargets(dub.generators.generato=
r.GeneratorSettings,
const(dub.generators.generator.ProjectGenerator.TargetInfo[immutable(char)[=
]])).void
buildTargetRec(immutable(char)[])+0x3a0) [0x62ab3c]
dub(void
dub.generators.build.BuildGenerator.generateTargets(dub.generators.generato=
r.GeneratorSettings,
const(dub.generators.generator.ProjectGenerator.TargetInfo[immutable(char)[=
]]))+0xb0)
[0x62a5dc]
dub(void
dub.generators.generator.ProjectGenerator.generate(dub.generators.generator=
.GeneratorSettings)+0x2de)
[0x62f9a2]
dub(void dub.dub.Dub.generateProject(immutable(char)[],
dub.generators.generator.GeneratorSettings)+0xaa) [0x5f1f46]
dub(int dub.commandline.GenerateCommand.execute(dub.dub.Dub,
immutable(char)[][], immutable(char)[][])+0x677) [0x5e5b6b]
dub(int dub.commandline.BuildCommand.execute(dub.dub.Dub, immutable(char)[]=
[],
immutable(char)[][])+0x8d) [0x5e5e81]
dub(int dub.commandline.runDubCommandLine(immutable(char)[][])+0x1211)
[0x5e3b8d]
dub(_Dmain+0x20) [0x5e2334]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().void __lambda1()+0x18) [0x6ce504]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate())+0x2a) [0x6ce45e]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll()+0x30) [0x6ce4c4]
dub(void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate())+0x2a) [0x6ce45e]
dub(_d_run_main+0x1a3) [0x6ce3df]
dub(main+0x25) [0x5e2979]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x3804e21d65]
----------------

Problem part:
-------------
    protected final void insertRow(shared IConnectionPool pool, string
tableName, JsonRpcRow row)
    {
-------------

Issue disappear if shared mod is removed. Cannot reproduce in single file w=
ith
similar architecture.

--=20
You are receiving this mail because:
You are watching all bug changes.
Apr 01 2014