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++/69261] Copying char arrays during constexpr evaluation does not work reliably


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
gcc-6 even ICEs:

str.cpp: In function âvoid foo()â:
str.cpp:73:33:   in constexpr expansion of âs<4>("bla")â
str.cpp:73:33: internal compiler error: in cxx_eval_store_expression, at
cp/constexpr.c:2807
    auto constexpr s1 = s( "bla" );
                                 ^

0x80cf39 cxx_eval_store_expression
        ../../gcc/gcc/cp/constexpr.c:2807
0x80a2be cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3311
0x809ee1 cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3570
0x809dbc cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3348
0x809dbc cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3348
0x80ee61 cxx_eval_statement_list
        ../../gcc/gcc/cp/constexpr.c:3027
0x80a7dc cxx_eval_loop_expr
        ../../gcc/gcc/cp/constexpr.c:3054
0x80a7dc cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3680
0x80ee61 cxx_eval_statement_list
        ../../gcc/gcc/cp/constexpr.c:3027
0x80a6cd cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3614
0x80a89f cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3620
0x80ee61 cxx_eval_statement_list
        ../../gcc/gcc/cp/constexpr.c:3027
0x80a6cd cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3614
0x80a89f cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3620
0x808ef7 cxx_eval_call_expression
        ../../gcc/gcc/cp/constexpr.c:1386
0x80a856 cxx_eval_constant_expression
        ../../gcc/gcc/cp/constexpr.c:3237
0x80f0e8 cxx_eval_outermost_constant_expr
        ../../gcc/gcc/cp/constexpr.c:3773
0x68acfc store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ../../gcc/gcc/cp/typeck2.c:820
0x5f2ea2 check_initializer
        ../../gcc/gcc/cp/decl.c:6137
0x6117bc cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/gcc/cp/decl.c:6765
Please submit a full bug report,

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