http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59791
Bug ID: 59791 Summary: [4.9 Regression] ICE: Error reporting routines re-entered. with -fcompare-debug Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 31825 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31825&action=edit reduced testcase Compiler output: $ gcc -std=c++0x -fcompare-debug testcase.C Internal compiler error: Error reporting routines re-entered. 0x6bddca tsubst_copy /mnt/svn/gcc-trunk/gcc/cp/pt.c:12480 0x6987c9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /mnt/svn/gcc-trunk/gcc/cp/pt.c:14961 0x698b43 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /mnt/svn/gcc-trunk/gcc/cp/pt.c:14175 0x6ad4b8 tsubst(tree_node*, tree_node*, int, tree_node*) /mnt/svn/gcc-trunk/gcc/cp/pt.c:12057 0x728525 dump_template_bindings /mnt/svn/gcc-trunk/gcc/cp/error.c:330 0x728525 dump_substitution /mnt/svn/gcc-trunk/gcc/cp/error.c:1386 0x72af9e decl_as_string_translate(tree_node*, int) /mnt/svn/gcc-trunk/gcc/cp/error.c:2740 0x7de4eb cxx_printable_name_internal /mnt/svn/gcc-trunk/gcc/cp/tree.c:1979 0x72a612 cp_print_error_function /mnt/svn/gcc-trunk/gcc/cp/error.c:3081 0x72a612 cp_diagnostic_starter /mnt/svn/gcc-trunk/gcc/cp/error.c:3026 0x15cc538 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) /mnt/svn/gcc-trunk/gcc/diagnostic.c:791 0x15cd29f internal_error(char const*, ...) /mnt/svn/gcc-trunk/gcc/diagnostic.c:1129 0x15cbaf3 fancy_abort(char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/diagnostic.c:1183 0x6bddca tsubst_copy /mnt/svn/gcc-trunk/gcc/cp/pt.c:12480 0x6987c9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /mnt/svn/gcc-trunk/gcc/cp/pt.c:14961 0x698b43 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /mnt/svn/gcc-trunk/gcc/cp/pt.c:14175 0x6ad4b8 tsubst(tree_node*, tree_node*, int, tree_node*) /mnt/svn/gcc-trunk/gcc/cp/pt.c:12057 0x728525 dump_template_bindings /mnt/svn/gcc-trunk/gcc/cp/error.c:330 0x728525 dump_substitution /mnt/svn/gcc-trunk/gcc/cp/error.c:1386 0x72af9e decl_as_string_translate(tree_node*, int) /mnt/svn/gcc-trunk/gcc/cp/error.c:2740 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-206575-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-206575-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20140113 (experimental) (GCC)