[cfe-commits] [PATCH] Bugfix: bogus error message "invalid use of non-static data member"

Delesley Hutchins delesley at google.com
Wed Feb 22 10:21:11 PST 2012


This fixes a bug where clang erroneously reports "invalid use of
non-static data member" if a class is forward declared, and the
reference to data member in question occurs outside of a member
function (e.g. in an attribute).  See patch for example.

Patch:
  http://codereview.appspot.com/5684064/

-- 
DeLesley Hutchins | Software Engineer | delesley at google.com | 505-206-0315
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-invalid-nonstatic.patch
Type: text/x-patch
Size: 1265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120222/c75d7f4f/attachment.bin>


More information about the cfe-commits mailing list