http://llvm.org/bugs/show_bug.cgi?id=2461
Summary: __attribute__ ((noreturn)) in a function parameter
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
clang doesn't allow __attribute__ ((noreturn)) in a function parameter:
[EMAIL PROTECTED] ~] $ cat b.c
extern void LibVEX_Init (
/* failure exit function */
__attribute__ ((noreturn))
void (*failure_exit) ( void )
);
[EMAIL PROTECTED] ~] $ 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.
[EMAIL PROTECTED] ~] $ gcc -o b.o -c b.c
[EMAIL PROTECTED] ~] $
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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