public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66604] New: ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor
@ 2015-06-19 17:57 eric_moyer at yahoo dot com
  2015-06-19 18:00 ` [Bug c++/66604] " eric_moyer at yahoo dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: eric_moyer at yahoo dot com @ 2015-06-19 17:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66604

            Bug ID: 66604
           Summary: ICE in use_thunk at cp/method.c:338 when creating a
                    default virtual destructor
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eric_moyer at yahoo dot com
  Target Milestone: ---

This may be the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60595
unfortunately, I don't know how to compile using the preprocessed source so I
couldn't relocate it to a machine where I can run a more recent g++ to verify
that the problem is fixed.

The machine is running 64-bit Centos.

>From gcc -v:
Configured with: ./configure --prefix=/usr/local/gcc/4.8.1
--build=x86_64-redhat-linux-gnu --libdir=/usr/lib64 --with-slibdir=/usr/l
ib64 --enable-version-specific-runtime-libs --enable-threads --enable-static
--enable-languages=c,c++ --disable-multilib --with-cloo
g=/tmp/gcc-deps --enable-cloog-backend=isl --disable-cloog-version-check

Thread model: posix
gcc version 4.8.1 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-Wno-format-y2k' '-pthread' '-O2'
'-fPIC' '-std=c++11' '-g' '-Wall' '-Wextra' '-Werror'
 '-Wpedantic' '-I' '../../../../../../include' '-I'
'../../../../../../include/internal' '-I' '.' '-I'
'/netopt/ncbi_tools64/c++.by-
date/20150619/src/internal/variation/snp/dbsnp2.0/lib' '-D' 'NDEBUG' '-D'
'_LARGEFILE_SOURCE' '-D' '_FILE_OFFSET_BITS=64' '-D' '_LAR
GEFILE64_SOURCE' '-D' '_MT' '-D' '_REENTRANT' '-D' '_THREAD_SAFE' '-I'
'/netopt/ncbi_tools64/c++.by-date/20150619/GCC481-Release64MT
/inc' '-I' '/netopt/ncbi_tools64/c++.by-date/20150619/include' '-I'
'/netopt/ncbi_tools64/c++.by-date/20150619/include/internal' '-s
hared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/cc1plus -E
-quiet -v -I ../../../../../../include -I ../../../../../
../include/internal -I . -I
/netopt/ncbi_tools64/c++.by-date/20150619/src/internal/variation/snp/dbsnp2.0/lib
-I /netopt/ncbi_tools6
4/c++.by-date/20150619/GCC481-Release64MT/inc -I
/netopt/ncbi_tools64/c++.by-date/20150619/include -I
/netopt/ncbi_tools64/c++.by-da
te/20150619/include/internal -D_GNU_SOURCE -D_REENTRANT -D NDEBUG -D
_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE64_SOURC
E -D _MT -D _REENTRANT -D _THREAD_SAFE Rs/RefSnpSnapshot.cpp -mtune=generic
-march=x86-64 -std=c++11 -Wno-format-y2k -Wall -Wextra -
Werror -Wpedantic -fPIC -g -fworking-directory -O2 -fpch-preprocess -o
RefSnpSnapshot.ii
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/../../../../../x86_64-redhat-linux-gnu/include"

Error message:
Compiler executable checksum: ae8d4875691bdb213696bc564004f479
In file included from
../../../../../../include/internal/variation/snp/dbsnp2.0/lib/Build/BuildComponent.hpp:32:0,
                 from
../../../../../../include/internal/variation/snp/dbsnp2.0/lib/Build/DerivedProductBuildComponent.hpp:30,
                 from
../../../../../../include/internal/variation/snp/dbsnp2.0/lib/Build/Summary.hpp:31,
                 from
../../../../../../include/internal/variation/snp/dbsnp2.0/lib/Rs/RefSnpSnapshot.hpp:30,
                 from Rs/RefSnpSnapshot.cpp:29:
../../../../../../include/internal/variation/snp/dbsnp2.0/lib/SharedFromThis.hpp:66:13:
internal compiler error: in use_thunk, at cp/method.c:338
     virtual ~virtual_enable_shared_from_this() = default;
             ^
Please submit a full bug report,
with preprocessed source if appropriate.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/66604] ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor
  2015-06-19 17:57 [Bug c++/66604] New: ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor eric_moyer at yahoo dot com
@ 2015-06-19 18:00 ` eric_moyer at yahoo dot com
  2015-06-19 20:10 ` miyuki at gcc dot gnu.org
  2015-08-04  9:58 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: eric_moyer at yahoo dot com @ 2015-06-19 18:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66604

--- Comment #1 from Eric Moyer <eric_moyer at yahoo dot com> ---
Created attachment 35817
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35817&action=edit
Preprocessed source (zipped because of attachment length limit)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/66604] ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor
  2015-06-19 17:57 [Bug c++/66604] New: ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor eric_moyer at yahoo dot com
  2015-06-19 18:00 ` [Bug c++/66604] " eric_moyer at yahoo dot com
@ 2015-06-19 20:10 ` miyuki at gcc dot gnu.org
  2015-08-04  9:58 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: miyuki at gcc dot gnu.org @ 2015-06-19 20:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66604

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |miyuki at gcc dot gnu.org

--- Comment #2 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
(In reply to Eric Moyer from comment #0)
> This may be the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60595
> unfortunately, I don't know how to compile using the preprocessed source so
> I couldn't relocate it to a machine where I can run a more recent g++ to
> verify that the problem is fixed.

Actually nothing special:
g++ -c -std=c++11 RefSnpSnapshot.ii
GCC recognizes .ii extension as preprocessed C++ source.

Other options may be specified as well (preprocessor options like -I and -D are
not needed).

ICE seems to be fixed in GCC 4.8.4, 4.9.x and later.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/66604] ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor
  2015-06-19 17:57 [Bug c++/66604] New: ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor eric_moyer at yahoo dot com
  2015-06-19 18:00 ` [Bug c++/66604] " eric_moyer at yahoo dot com
  2015-06-19 20:10 ` miyuki at gcc dot gnu.org
@ 2015-08-04  9:58 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-08-04  9:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66604

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.8.3, 4.9.0, 5.0
         Resolution|---                         |FIXED

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Closing.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-04  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 17:57 [Bug c++/66604] New: ICE in use_thunk at cp/method.c:338 when creating a default virtual destructor eric_moyer at yahoo dot com
2015-06-19 18:00 ` [Bug c++/66604] " eric_moyer at yahoo dot com
2015-06-19 20:10 ` miyuki at gcc dot gnu.org
2015-08-04  9:58 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).