[LLVMbugs] [Bug 2461] New: __attribute__ ((noreturn)) in a function parameter

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jun 14 10:41:09 PDT 2008


           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: unassignedbugs at nondot.org
        ReportedBy: filcab at gmail.com
                CC: llvmbugs at cs.uiuc.edu

clang doesn't allow __attribute__ ((noreturn)) in a function parameter:
[filcab at farnsworth ~] $ cat b.c
extern void LibVEX_Init (
   /* failure exit function */
   __attribute__ ((noreturn))
   void (*failure_exit) ( void )
[filcab at 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 at farnsworth ~] $ gcc -o b.o -c b.c
[filcab at farnsworth ~] $

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.

More information about the llvm-bugs mailing list