[PATCH] D85990: [Clang] Fix BZ47169, loader_uninitialized on incomplete types

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 14 12:46:25 PDT 2020


erichkeane added inline comments.


================
Comment at: clang/test/Sema/attr-loader-uninitialized.cpp:14
+extern S incomplete_external_rejected __attribute__((loader_uninitialized));
+// expected-error at -1 {{variable has incomplete type 'S'}}
+// expected-note at -3 {{forward declaration of 'S'}}
----------------
Should this give the 'cannot be declared 'extern' and with the 'loader_uninitialized' attribute?' error instead?  it seems to make more sense there, and is more specific.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85990/new/

https://reviews.llvm.org/D85990



More information about the cfe-commits mailing list