http://llvm.org/bugs/show_bug.cgi?id=5402
Summary: attribute noreturn doesn't work if specified in front of
a function pointer decl
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: parser
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
test case:
#define NORETURN __attribute__((__noreturn__))
NORETURN void (*a)();
void (*b)() NORETURN;
NORETURN void x() {
a();
}
NORETURN void y() {
b();
}
clang complains:
t.c:8:1: warning: function declared 'noreturn' should not return
[-Winvalid-noreturn]
}
^
--
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