https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107280
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE: tree check: expected |[10/11/12/13 Regression]
|constructor, have |ICE: tree check: expected
|view_convert_expr in |constructor, have
|cxx_eval_store_expression, |view_convert_expr in
|at cp/constexpr.cc:5928 |cxx_eval_store_expression,
| |at cp/constexpr.cc:5928
Target Milestone|13.0 |10.5
Priority|P3 |P2
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This isn't about consteval. Adjusted C++17 test:
// PR c++/107280
struct string {
char str[8] = "";
};
template <int, int> constexpr void
test ()
{
string str{};
auto append = [&](const char *s) { *str.str = *s; };
append("");
}
static_assert ((test<true, true>(), true), "");
Started with r10-3661-g8e007055dd1374, making this a regression.
commit 8e007055dd1374ca4c44406a4ead172be0dfa3a8
Author: Jakub Jelinek <[email protected]>
Date: Sat Oct 5 09:38:21 2019 +0200
PR c++/91369 - Implement P0784R7: constexpr new