[cfe-commits] patch: improve diagnostic on "class T::iterator" where T::iterator is a typedef

Nick Lewycky nlewycky at google.com
Sun Jan 23 14:34:18 PST 2011


This patch fixes PR8755, a bug where we give a worse diagnostic when
templates are involved than when they aren't. In the case of "class
T<A>::iterator" we look up tag types only then error out when one isn't
found. The patch works by extended the error path to do a second lookup and
report a more informative error when a non-tag type is found.

Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110123/54f40aa9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr8755.patch
Type: text/x-patch
Size: 1972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110123/54f40aa9/attachment.bin>


More information about the cfe-commits mailing list