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++/67108] New: ICE: in cxx_eval_call_expression, at cp/constexpr.c:1345 when dumping


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

            Bug ID: 67108
           Summary: ICE: in cxx_eval_call_expression, at
                    cp/constexpr.c:1345 when dumping
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---

Created attachment 36116
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36116&action=edit
reduced testcase

Compiler output with -fdump-ipa-cgraph:
$ gcc testcase.C -fdump-ipa-cgraph
testcase.C:26:3:   in constexpr expansion of âis_same<A, A>{}.is_same<T,
T>::operator()<A>()â
cc1plus: internal compiler error: in cxx_eval_call_expression, at
cp/constexpr.c:1345
0x7e5a35 cxx_eval_call_expression
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:1345
0x7e6851 cxx_eval_constant_expression
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:3079
0x7ebd9b cxx_eval_outermost_constant_expr
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:3594
0x7eda18 maybe_constant_value(tree_node*, tree_node*)
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:3707
0x64dda6 convert_nontype_argument
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:5956
0x64dda6 convert_template_argument
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:6853
0x64f55f coerce_template_parms
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:7282
0x651b72 lookup_template_class_1
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:7851
0x651b72 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:8177
0x654bac tsubst_aggr_type
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:10587
0x640cf8 tsubst(tree_node*, tree_node*, int, tree_node*)
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:12549
0x6bd440 dump_template_bindings
        /mnt/svn/gcc-trunk/gcc/cp/error.c:351
0x6bd440 dump_substitution
        /mnt/svn/gcc-trunk/gcc/cp/error.c:1438
0x6c9963 decl_as_string(tree_node*, int)
        /mnt/svn/gcc-trunk/gcc/cp/error.c:2803
0x778ec9 cxx_printable_name_internal
        /mnt/svn/gcc-trunk/gcc/cp/tree.c:2095
0x8e7c1e symtab_node::name() const
        /mnt/svn/gcc-trunk/gcc/symtab.c:460
0x8e7c1e symtab_node::dump_base(_IO_FILE*)
        /mnt/svn/gcc-trunk/gcc/symtab.c:726
0x8f1192 cgraph_node::dump(_IO_FILE*)
        /mnt/svn/gcc-trunk/gcc/cgraph.c:1980
0x8e86ca symtab_node::dump_table(_IO_FILE*)
        /mnt/svn/gcc-trunk/gcc/symtab.c:853
0x901dc1 analyze_functions
        /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1167
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.


Compiler output with -fcompare-debug:
$ gcc testcase.C -fcompare-debug


internal compiler error: Error reporting routines re-entered.
0x7e5a35 cxx_eval_call_expression
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:1345
0x7e6851 cxx_eval_constant_expression
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:3079
0x7ebd9b cxx_eval_outermost_constant_expr
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:3594
0x7eda18 maybe_constant_value(tree_node*, tree_node*)
        /mnt/svn/gcc-trunk/gcc/cp/constexpr.c:3707
0x64dda6 convert_nontype_argument
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:5956
0x64dda6 convert_template_argument
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:6853
0x64f55f coerce_template_parms
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:7282
0x651b72 lookup_template_class_1
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:7851
0x651b72 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:8177
0x654bac tsubst_aggr_type
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:10587
0x640cf8 tsubst(tree_node*, tree_node*, int, tree_node*)
        /mnt/svn/gcc-trunk/gcc/cp/pt.c:12549
0x6bd440 dump_template_bindings
        /mnt/svn/gcc-trunk/gcc/cp/error.c:351
0x6bd440 dump_substitution
        /mnt/svn/gcc-trunk/gcc/cp/error.c:1438
0x6c99fc decl_as_string_translate(tree_node*, int)
        /mnt/svn/gcc-trunk/gcc/cp/error.c:2811
0x778ec9 cxx_printable_name_internal
        /mnt/svn/gcc-trunk/gcc/cp/tree.c:2095
0x6c6a72 cp_print_error_function
        /mnt/svn/gcc-trunk/gcc/cp/error.c:3144
0x6c6a72 cp_diagnostic_starter
        /mnt/svn/gcc-trunk/gcc/cp/error.c:3098
0x163e1df diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /mnt/svn/gcc-trunk/gcc/diagnostic.c:916
0x163f037 internal_error(char const*, ...)
        /mnt/svn/gcc-trunk/gcc/diagnostic.c:1272
0x163d6f3 fancy_abort(char const*, int, char const*)
        /mnt/svn/gcc-trunk/gcc/diagnostic.c:1340
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.


Tested revisions:
r226486 - ICE
gcc-5-branch r225803 - code is not accepted

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