[clang] Diagnose problematic uses of constructor/destructor attribute (PR #67673)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 12 23:44:28 PDT 2023


MaskRay wrote:

(Was out of town...)

As mentioned at https://github.com/llvm/llvm-project/pull/67360#issuecomment-1736187374 , I think a default error is probably not appropriate. A priority value <= 100 may compete with a runtime `__attribute__((constructor(X)))` but more often it will work. A warning is fine.

https://github.com/llvm/llvm-project/pull/67673


More information about the cfe-commits mailing list