pmatos added a comment.

In https://reviews.llvm.org/D26843#599635, @EricWF wrote:

> This isn't correct. For example this change breaks:
>
>   struct T { int m; };
>   int x = sizeof(T::m);
>


But that is not valid in C afaik and in C++ I get:

  error: invalid use of non-static data member 'm'
    int x = sizeof(T::m);
                   ~~~^

Can you post a full reproducible example of what the change breaks?


https://reviews.llvm.org/D26843



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to