Thanks for the feedback; fixed.
Jason
On Tue, 15 Mar 2011, Jason Merrill wrote:
> +/* Likewise, for constexpr function call evaluations. N3225 specifies a
> + minimum of 512. */
>
> +int max_constexpr_depth = 512;
Since all you're doing in the option handler is setting a global variable,
it's better to declare the option in th
The draft standard specifies a minimum limit of 512 recursive constexpr
calls in order to avoid, say, recursing through the entire range of int.
This patch adds a check for this recursion limit and a flag to change
the limit.
Tested x86_64-pc-linux-gnu, applying to trunk.
commit caa7a7a82f9f9