[PATCH] D14274: Add alloc_size attribute to clang

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 06:13:40 PDT 2016

aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

Thank you for working on this! LGTM, but please wait for @rsmith to okay as well.

Comment at: test/SemaCXX/constant-expression-cxx11.cpp:1171
@@ -1170,3 +1170,3 @@
   int l : n3; // expected-error {{constant expression}} expected-note {{read of non-const variable}}
-  int m : t.n; // expected-error {{constant expression}} expected-note {{read of non-constexpr variable}}
+  int m : t.n; // expected-warning{{width of bit-field 'm' (42 bits)}}
Thank you for the explanation!


More information about the cfe-commits mailing list