Skip to content

__attribute__ ((noreturn)) in a function parameter #2833

@filcab

Description

@filcab
Bugzilla Link 2461
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS All
CC @mrvacbob,@d0k,@edwintorok,@efriedma-quic

Extended Description

clang doesn't allow attribute ((noreturn)) in a function parameter:
[filcab@farnsworth ~] $ cat b.c
extern void LibVEX_Init (
/* failure exit function */
attribute ((noreturn))
void (*failure_exit) ( void )
);
[filcab@farnsworth ~] $ ccc -o b.o -c b.c
clang -emit-llvm-bc -x c -o b.o b.c
b.c:3:20: warning: 'noreturn' attribute only applies to function types
attribute ((noreturn))
^
1 diagnostic generated.
[filcab@farnsworth ~] $ gcc -o b.o -c b.c
[filcab@farnsworth ~] $

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