[Bug c++/94523] [10 Regression] error: 'constexpr' evaluation depth exceeds maximum of 512 (use '-fconstexpr-depth=' to increase the maximum) since r10-7490-g76f09260b7eccd6c
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 9 11:32:06 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94523
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu.org
--- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Here's a simpler testcase without variadic templates and template alias:
=======================================
struct A
{
char c;
constexpr A(int) : c() {}
};
template<int N> struct B
{
static constexpr auto X = A(N);
};
constexpr A a = B<0>::X;
=======================================
More information about the Gcc-bugs
mailing list