Re: [PATCH] c++: Fix template arguments comparison with class NTTP [PR91754]

2020-01-29 Thread Jason Merrill
On 1/29/20 12:35 PM, Marek Polacek wrote: Here we fail to compile the attached test, stating that the use of T in T::T() {} is "invalid use of incomplete type". It is a function definition so grokdeclarator checks that the qualifying type is complete. When we parsed the class T, finish_struct g

[PATCH] c++: Fix template arguments comparison with class NTTP [PR91754]

2020-01-29 Thread Marek Polacek
Here we fail to compile the attached test, stating that the use of T in T::T() {} is "invalid use of incomplete type". It is a function definition so grokdeclarator checks that the qualifying type is complete. When we parsed the class T, finish_struct gave the class a non-null TYPE_SIZE, making i