<div class="gmail_quote">Here's a updated patch. Solved several problems:<br>- Template(When type of the property is dependent) is now implemented.<br>- Property reference in class functions can be properly found.<br>
- When property reference is used as array size(new [])/var-initializer/array-base, it can be properly processed now. Add CheckPlaceholderType(which calls checkPseudoObjectRValue) to these situations.<br>- Better diagnostics messages, no more "assert"<br>
- Other stuff completed, ASTStmtWriter/ASTStmtReader.<br><br>One problems left. After it's solved, I hope this patch can get into mainline :-)<br>John - I have to comment out "assert(!ty->isDependentType());" in PseudoOpBuilder::CanCaptureValueOfType to make postfix ++ work for the attached cpp testcase. I don't understand what's it for, but just commenting it out seems to make things work. However, Linus criticized a kernel developer for just playing with magic numbers without knowing the reason, so I think it's better to dig a little deeper.<br>
<br>Patch and a testcase attached.<div class="HOEnZb"><div class="h5"><br></div></div></div>-- <br>Best Regards, Tong Shen (沈彤)