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

            Bug ID: 63317
           Summary: Internal compiler error in unify, cp/pt.c: 15820
           Product: gcc
           Version: 4.6.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: netheril96 at gmail dot com

Created attachment 33521
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33521&action=edit
The preprocessed output as well as command line I used and the g++'s version
information

The command line is

====================================================================================
Script started on Sat 20 Sep 2014 03:47:23 PM CST
rsy@rsy-ubuntu-server:~/autojsoncxx$ CXX=g++-4.6 make test
make test -C test/
make[1]: Entering directory `/home/rsy/autojsoncxx/test'
g++-4.6 -std=c++0x -O2 -Wall -Wextra -pedantic -g -I../include
-I../rapidjson/include -I../catch/single_include -c test.cpp -o test.o
In file included from ../include/autojsoncxx/error.hpp:27:0,
                 from ../include/autojsoncxx/base.hpp:27,
                 from ../include/autojsoncxx/autojsoncxx.hpp:27,
                 from userdef.hpp:25,
                 from test.cpp:35:
../rapidjson/include/rapidjson/error/error.h:88:37: warning: comma at end of
enumerator list [-pedantic]
In file included from ../rapidjson/include/rapidjson/writer.h:27:0,
                 from ../include/autojsoncxx/to_json.hpp:30,
                 from ../include/autojsoncxx/autojsoncxx.hpp:33,
                 from userdef.hpp:25,
                 from test.cpp:35:
../rapidjson/include/rapidjson/internal/dtoa.h: In member function
‘rapidjson::internal::DiyFp rapidjson::internal::DiyFp::operator*(const
rapidjson::internal::DiyFp&) const’:
../rapidjson/include/rapidjson/internal/dtoa.h:80:27: warning: ISO C++ does not
support ‘__int128’ for ‘p’ [-pedantic]
../rapidjson/include/rapidjson/internal/dtoa.h:80:52: warning: ISO C++ does not
support ‘__int128’ for ‘type name’ [-pedantic]
../rapidjson/include/rapidjson/internal/dtoa.h:80:88: warning: ISO C++ does not
support ‘__int128’ for ‘type name’ [-pedantic]
In file included from ../include/autojsoncxx/autojsoncxx.hpp:33:0,
                 from userdef.hpp:25,
                 from test.cpp:35:
../include/autojsoncxx/to_json.hpp: In function ‘void
autojsoncxx::write_json(Writer&, const ValueType&) [with Writer =
rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<> > >,
ValueType = std::vector<config::User>]’:
../include/autojsoncxx/to_json.hpp:48:5:   instantiated from ‘void
autojsoncxx::to_json(OutputStream&, const ValueType&) [with OutputStream =
rapidjson::GenericStringBuffer<rapidjson::UTF8<> >, ValueType =
std::vector<config::User>]’
../include/autojsoncxx/to_json.hpp:57:5:   instantiated from ‘void
autojsoncxx::to_json_string(std::string&, const ValueType&, std::size_t) [with
ValueType = std::vector<config::User>, std::string = std::basic_string<char>,
std::size_t = long unsigned int]’
test.cpp:341:33:   instantiated from here
../include/autojsoncxx/to_json.hpp:41:5: internal compiler error: in unify, at
cp/pt.c:15820
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccBvcXI4.out file, please attach this to
your bugreport.
make[1]: *** [test.o] Error 1
make[1]: Leaving directory `/home/rsy/autojsoncxx/test'
make: *** [test] Error 2
rsy@rsy-ubuntu-server:~/autojsoncxx$ 
Script done on Sat 20 Sep 2014 03:47:40 PM CST
====================================================================================

g++'s full version information:

====================================================================================
g++-4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2) 4.6.4
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Using built-in specs.
COLLECT_GCC=g++-4.6
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.4-6ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-gnu-unique-object --disable-libmudflap
--enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.4 (Ubuntu/Linaro 4.6.4-6ubuntu2) 
====================================================================================

The preprocessed output is attached.

It compiles fine on g++-4.8, g++-4.9, clang-3.0 and clang-3.4.

Reply via email to