https://llvm.org/bugs/show_bug.cgi?id=24134

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WONTFIX

--- Comment #1 from Richard Smith <[email protected]> ---
(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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to