On Wed, Feb 22, 2012 at 10:21 AM, Delesley Hutchins <[email protected]> wrote:
> 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/

Please also include the following C++11 testcase:

class Foo;
class Foo {
  int x;
  int y = x;
};

Otherwise, looks fine.

-Eli

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to