Re: C++ PATCH for c++/48969 (infinite template recursion with enum scope)

2011-05-16 Thread Jason Merrill
On 05/13/2011 06:22 PM, Jason Merrill wrote: My initial implementation used a VEC to keep track of current deductions in process, but I switched it to use a hash table instead; the overhead for using a hash table rather than a VEC on the most common case (very low deduction nesting) is small, but

C++ PATCH for c++/48969 (infinite template recursion with enum scope)

2011-05-13 Thread Jason Merrill
In C++0x there are a couple of ways for a function signature to depend on itself, leading to infinite recursion in substitution during template argument deduction. This patch adds checking for that. My initial implementation used a VEC to keep track of current deductions in process, but I swi