[cfe-commits] Fix for crash with specialization?

Douglas Gregor dgregor at apple.com
Tue Sep 15 17:05:50 PDT 2009


On Sep 15, 2009, at 5:01 PM, Eli Friedman wrote:

> Attached prevents the following from crashing:
> template<typename _CharT> struct A {int x();};
> template<> int A<char>::x() { return 1; }
>
> Does the patch look close to correct, or is the issue more  
> fundamental?


We should only call RequireCompleteDeclContext if !DC- 
 >isDependentContext(); otherwise, the patch looks good.

	- Doug



More information about the cfe-commits mailing list