[LLVMbugs] [Bug 4616] New: invalid error: "function declared 'noreturn' should not return" for function pointers marked noreturn
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Jul 24 10:30:09 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4616
Summary: invalid error: "function declared 'noreturn' should not
return" for function pointers marked noreturn
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: benny.kra at gmail.com
CC: llvmbugs at cs.uiuc.edu, mrs at apple.com
$ cat t.c
void foo() __attribute__((noreturn));
void bar() __attribute__((noreturn));
void (*fptr)() __attribute__((noreturn)) = bar;
void foo() { fptr(); }
$ clang t.c
t.c:5:22: error: function declared 'noreturn' should not return
[-Winvalid-noreturn]
void foo() { fptr(); }
^
1 diagnostic generated.
--
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