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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
$ 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs