Re: C++0x PATCH to add -fconstexpr-depth

2011-03-18 Thread Jason Merrill
Thanks for the feedback; fixed. Jason

Re: C++0x PATCH to add -fconstexpr-depth

2011-03-18 Thread Joseph S. Myers
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

C++0x PATCH to add -fconstexpr-depth

2011-03-15 Thread Jason Merrill
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