[LLVMbugs] [Bug 24134] Clang ignores nonnull attributes on declarations following definitions when compiling as C++; behavior differs from gcc and EDG
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 16 13:47:20 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24134
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |WONTFIX
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(From mailing list discussion:)
We don't support adding attributes after a definition. (In the case where the
attributes affect the generated code for the definition, that way lies madness,
and we don't distinguish between those attributes and others for consistency --
note that nonnull *does* affect code generation in some cases.) The difference
between C and C++ here is most likely exactly what you suspect (the first
declaration is only a tentative definition in C).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150716/dad3a651/attachment.html>
More information about the llvm-bugs
mailing list