[PATCH] D117569: Constexpr not supported with __declspec(dllimport).

David Majnemer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 19 22:23:14 PST 2022


majnemer added inline comments.


================
Comment at: clang/lib/AST/ExprConstant.cpp:2219
+          Info.getLangOpts().CPlusPlus && !isForManglingOnly(Kind) &&
+              Var->hasAttr<DLLExportAttr>())
         // FIXME: Diagnostic!
----------------
The summary and the bug both mention dllimport but this is examining dllexport. Is this intended? If so, please update the comment above this if-statement.


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

https://reviews.llvm.org/D117569



More information about the cfe-commits mailing list