Thread overview
[Bug 113] Internal compiler problem on shared argument of final interface method: in toElem, at d/d-elem.cc:2521
Apr 01, 2014
ncrashed@gmail.com
Apr 13, 2014
Iain Buclaw
Apr 13, 2014
Iain Buclaw
Apr 13, 2014
ncrashed@gmail.com
Apr 15, 2014
Iain Buclaw
Apr 17, 2014
Iain Buclaw
Apr 17, 2014
Iain Buclaw
Apr 17, 2014
ncrashed@gmail.com
Apr 17, 2014
Iain Buclaw
Apr 07, 2015
Johannes Pfau
April 01, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #1 from ncrashed@gmail.com ---
Some more useful logs from --verbose call:
-------------
COLLECT_GCC=/opt/gdc/bin/gdc
COLLECT_LTO_WRAPPER=/opt/gdc/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.2/configure --enable-languages=d
--disable-bootstrap --prefix=/opt/gdc
--with-bugurl=http://gdcproject.org/bugzilla --enable-checking=yes
--enable-libssp=yes --enable-lto=yes --enable-ld=yes --enable-multilib=yes
--enable-shared=yes
Thread model: posix
gcc version 4.8.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-o'
'.dub/build/production-debug-linux.posix-x86_64-gdc-F67C7D8665F365BEDC393F86A606B72B/pgator'
'-fdebug' '-g' '-Werror' '-Wall' '-fversion=VibeCustomMain'
'-fversion=Have_vibe_d' '-fversion=Have_Int64_TimeStamp'
'-fversion=VibeLibeventDriver' '-fversion=Have_pgator'
'-fversion=Have_derelict_pq' '-fversion=Have_derelict_util'
'-fversion=Have_dunit' '-fversion=Have_libevent' '-fversion=Have_openssl' '-I'
'source' '-I' '../../../.dub/packages/derelict-pq-master/source' '-I'
'../../../.dub/packages/derelict-util-1.0.0/source' '-I'
'../../../.dub/packages/dunit-1.0.9/source' '-I'
'../../../.dub/packages/vibe-d-master/source' '-I'
'../../../.dub/packages/libevent-master' '-I'
'../../../.dub/packages/openssl-master' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 /opt/gdc/libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/cc1d @/tmp/ccsXnIpu -quiet
-dumpbase app.d -mtune=generic -march=x86-64 -auxbase app -g -Werror -Wall
-version -fdebug -fversion=VibeCustomMain -fversion=Have_vibe_d
-fversion=Have_Int64_TimeStamp -fversion=VibeLibeventDriver
-fversion=Have_pgator -fversion=Have_derelict_pq -fversion=Have_derelict_util
-fversion=Have_dunit -fversion=Have_libevent -fversion=Have_openssl -I source
-I ../../../.dub/packages/derelict-pq-master/source -I
../../../.dub/packages/derelict-util-1.0.0/source -I
../../../.dub/packages/dunit-1.0.9/source -I
../../../.dub/packages/vibe-d-master/source -I
../../../.dub/packages/libevent-master -I ../../../.dub/packages/openssl-master
-o /tmp/ccBfUfKH.s
GNU D (GCC) version 4.8.2 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.8.2 20131212 (Red Hat 4.8.2-7), GMP version
5.1.2, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU D (GCC) version 4.8.2 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.8.2 20131212 (Red Hat 4.8.2-7), GMP version
5.1.2, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
-------------

-- 
You are receiving this mail because:
You are watching all bug changes.


April 13, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
These aren't useful, but I've instead built dub and ran it on your project. Have tracked it down to a GCC GC bug. Going to test the fix and push it later.

-- 
You are receiving this mail because:
You are watching all bug changes.


April 13, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Saying that, I might be seeing a different issue to yours.


Don't think I can get as far as you in compilation, I'm getting FTBFS because of the following error when building vibe.d

/opt/usr/include/d/4.9.0/std/conv.d:4884: error: constructor vibe.stream.ssl.SSLStream.this is deprecated - Use createSSLStream instead of directly instantiating SSLStream.

-- 
You are receiving this mail because:
You are watching all bug changes.


April 13, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #4 from ncrashed@gmail.com ---
(In reply to Iain Buclaw from comment #3)
> Saying that, I might be seeing a different issue to yours.
> 
> 
> Don't think I can get as far as you in compilation, I'm getting FTBFS because of the following error when building vibe.d
> 
> /opt/usr/include/d/4.9.0/std/conv.d:4884: error: constructor vibe.stream.ssl.SSLStream.this is deprecated - Use createSSLStream instead of directly instantiating SSLStream.

It's fresh vibe.d issue. After getting local vibe.d clone issue still goes:
--------
git checkout 266e505a993d8aee2e8b3712477abbc07e07a47a
dub add-local .
rm -rf ~/.dub/packages/vibe*
--------

-- 
You are receiving this mail because:
You are watching all bug changes.


April 15, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Iain Buclaw <ibuclaw@gdcproject.org> ---
OK, I've finally got your original ICE. :-)

Confirmed. I'll look into this later.

-- 
You are receiving this mail because:
You are watching all bug changes.


April 17, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #6 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Looks like the front-end didn't properly fix the AssociativeArray() abstraction in 2.064, and the back-end is still being given junk AA types where structs are expected.

This should be probably fixed in 2.065 or 2.066 IIRC with Daniel's fixes that remove AssociativeArray entirely from the compiler and switches AA struct template implementation over to UFCS.

In the call:
    pool.execTransaction(...)

Got:
    param_4 => AssociativeArray(null) of type string[string];

Expected:



I suspect changing this line would fix also:

module db.pool;
---
     InputRange!(immutable Bson) execTransaction(string[] commands
         , string[] params = [], uint[] argnums = []
-        , string[string] vars = AssociativeArray!(string, string)()) shared
+        , string[string] vars = null) shared
     in
     {
---

-- 
You are receiving this mail because:
You are watching all bug changes.


April 17, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #7 from Iain Buclaw <ibuclaw@gdcproject.org> ---
*(Accidentally hit enter)

Got:
    param_4 => AssociativeArray(null) of type string[string];

Expected:
    param_4 => AssociativeArray(null) of type (struct) AssociativeArray;

-- 
You are receiving this mail because:
You are watching all bug changes.


April 17, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #8 from ncrashed@gmail.com ---
Thanks, the workaround works.

-- 
You are receiving this mail because:
You are watching all bug changes.


April 17, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

--- Comment #9 from Iain Buclaw <ibuclaw@gdcproject.org> ---
For reference, this will actually be fixed in 2.066.


Might be worth cherry-picking this specific commit once we have rebased ourselves to 2.065.

-- 
You are receiving this mail because:
You are watching all bug changes.


April 07, 2015
http://bugzilla.gdcproject.org/show_bug.cgi?id=113

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |johannespfau@gmail.com
         Resolution|---                         |WORKSFORME

-- 
You are receiving this mail because:
You are watching all bug changes.