[Bug c++/70001] [5 regression] Infinity compilation time
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 28 21:40:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70001
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
A sufficiently large 1D array is sufficient as well as an element type that has
a constexpr default constructor:
#include <array>
struct X
{
int a;
constexpr X () : a (0) { }
};
const int N = 1 << 19;
std::array<X, N> F;
More information about the Gcc-bugs
mailing list