This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83988] New: Internal compiler error in tsubst_baselink


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

            Bug ID: 83988
           Summary: Internal compiler error in tsubst_baselink
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: csaba_22 at yahoo dot co.uk
  Target Milestone: ---

Created attachment 43214
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43214&action=edit
preprocessed source, compressed

$ g++-8 -v -Wall -pedantic -Wextra -g -save-temps -I
~/wk/hotblack/third_party/rapidjson/include   snafu.cc   -o snafu
Using built-in specs.
COLLECT_GCC=g++-8
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto :
(reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto :
(reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../trunk/configure --program-suffix=-8
--enable-version-specific-runtime-libs --enable-languages=c,c++,lto --no-create
--no-recursion
Thread model: posix
gcc version 8.0.1 20180122 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-Wall' '-Wpedantic' '-Wextra' '-g' '-save-temps' '-I'
'/home/csabaraduly/wk/hotblack/third_party/rapidjson/include' '-o' 'snafu'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/cc1plus -E -quiet -v -I
/home/csabaraduly/wk/hotblack/third_party/rapidjson/include -imultiarch
x86_64-linux-gnu -D_GNU_SOURCE snafu.cc -mtune=generic -march=x86-64 -Wall
-Wpedantic -Wextra -g -fworking-directory -fpch-preprocess -o snafu.ii
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.1/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/csabaraduly/wk/hotblack/third_party/rapidjson/include
 /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.1/include/c++
 /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.1/include/c++/x86_64-pc-linux-gnu
 /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.1/include/c++/backward
 /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.1/include
 /usr/local/include
 /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.0.1/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-Wall' '-Wpedantic' '-Wextra' '-g' '-save-temps' '-I'
'/home/csabaraduly/wk/hotblack/third_party/rapidjson/include' '-o' 'snafu'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/cc1plus -fpreprocessed
snafu.ii -quiet -dumpbase snafu.cc -mtune=generic -march=x86-64 -auxbase snafu
-g -Wall -Wpedantic -Wextra -version -o snafu.s
GNU C++14 (GCC) version 8.0.1 20180122 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 8.0.1 20180122 (experimental), GMP version
6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++14 (GCC) version 8.0.1 20180122 (experimental) (x86_64-pc-linux-gnu)
        compiled by GNU C version 8.0.1 20180122 (experimental), GMP version
6.1.2, MPFR version 3.1.6, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 8ee7c7ccea3c2943f7408516591b8840
snafu.cc: In instantiation of ‘boost::optional<T> get_from_json::maybe() const
[with AsWhat = long unsigned int]’:
snafu.cc:119:64:   required from here
snafu.cc:102:35: internal compiler error: in tsubst_baselink, at cp/pt.c:14451
             this->operator boost::optional<AsWhat>();
             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
0x61cde5 tsubst_baselink
        ../../trunk/gcc/cp/pt.c:14451
0x92746b tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../trunk/gcc/cp/pt.c:17996
0x925eaf tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../trunk/gcc/cp/pt.c:17604
0x9338d9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../trunk/gcc/cp/pt.c:17041
0x9338d9 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../trunk/gcc/cp/pt.c:16779
0x933138 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../trunk/gcc/cp/pt.c:15996
0x930ad1 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../trunk/gcc/cp/pt.c:16263
0x92fd68 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../trunk/gcc/cp/pt.c:15971
0x92fd68 instantiate_decl(tree_node*, bool, bool)
        ../../trunk/gcc/cp/pt.c:23329
0x95a33b instantiate_pending_templates(int)
        ../../trunk/gcc/cp/pt.c:23445
0x87ce7b c_parse_final_cleanups()
        ../../trunk/gcc/cp/decl2.c:4705

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]