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

Zhendong Su <su at cs dot ucdavis.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #7 from Zhendong Su <su at cs dot ucdavis.edu> ---
The same ICE is still triggered with the current GCC trunk: 

$ g++-trunk -v
Using built-in specs.
COLLECT_GCC=g++-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/usr/local/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 7.0.0 20160426 (experimental) [trunk revision 235433] (GCC) 
$ 
$ g++-trunk -O1 -c pr70344.cpp
pr70344.cpp: In instantiation of ‘constexpr int fn(T) [with T = Z]’:
pr70344.cpp:15:18:   required from here
pr70344.cpp:13:1: internal compiler error: in adjust_temp_type, at
cp/constexpr.c:1136
 }
 ^
0x89197a adjust_temp_type
        ../../gcc-source-trunk/gcc/cp/constexpr.c:1136
0x898797 cxx_bind_parameters_in_call
        ../../gcc-source-trunk/gcc/cp/constexpr.c:1210
0x898797 cxx_eval_call_expression
        ../../gcc-source-trunk/gcc/cp/constexpr.c:1397
0x89aa5d cxx_eval_constant_expression
        ../../gcc-source-trunk/gcc/cp/constexpr.c:3558
0x8a10e9 cxx_eval_outermost_constant_expr
        ../../gcc-source-trunk/gcc/cp/constexpr.c:4136
0x8a3f78 maybe_constant_value_1
        ../../gcc-source-trunk/gcc/cp/constexpr.c:4330
0x8a3f78 maybe_constant_value(tree_node*, tree_node*)
        ../../gcc-source-trunk/gcc/cp/constexpr.c:4354
0x87fad3 cp_fold
        ../../gcc-source-trunk/gcc/cp/cp-gimplify.c:2205
0x87f398 cp_fold_rvalue
        ../../gcc-source-trunk/gcc/cp/cp-gimplify.c:1894
0x87f398 cp_fold
        ../../gcc-source-trunk/gcc/cp/cp-gimplify.c:2083
0x88037e cp_fold_r
        ../../gcc-source-trunk/gcc/cp/cp-gimplify.c:940
0x1059734 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc-source-trunk/gcc/tree.c:11531
0x6a2587 finish_function(int)
        ../../gcc-source-trunk/gcc/cp/decl.c:14712
0x70cf2a instantiate_decl(tree_node*, int, bool)
        ../../gcc-source-trunk/gcc/cp/pt.c:22035
0x75492b mark_used(tree_node*, int)
        ../../gcc-source-trunk/gcc/cp/decl2.c:5273
0x65d521 build_over_call
        ../../gcc-source-trunk/gcc/cp/call.c:7724
0x66ccff build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, bool, int)
        ../../gcc-source-trunk/gcc/cp/call.c:4169
0x808bf1 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ../../gcc-source-trunk/gcc/cp/semantics.c:2461
0x782a99 cp_parser_postfix_expression
        ../../gcc-source-trunk/gcc/cp/parser.c:6904
0x78bdec cp_parser_unary_expression
        ../../gcc-source-trunk/gcc/cp/parser.c:7988
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.
$

Reply via email to