Skip to content

Attributes order, it is meaningful and clang loses it. #3640

@llvmbot

Description

@llvmbot
Bugzilla Link 3268
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @asl,@efriedma-quic

Extended Description

It is critical in presence of asm attribute, the asm attribute must be first.
Instead in this code:
---->
typedef unsigned long size_t;
extern int strerror_r(int __errnum, char *__buf, size_t __buflen)
asm ("" "__xpg_strerror_r")
attribute ((nothrow))
attribute ((nonnull (2)));
----<
The asm attribute comes out last.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions