http://llvm.org/bugs/show_bug.cgi?id=8140
Summary: Duplicate (?) error on function pointer assignment
with incompatible exception specification
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: quality-of-implementation
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
void (*pf)() throw(int);
void f() {
pf = f;
};
Error output:
<stdin>:3:8: error: target exception specification is not superset of source
pf = f;
^
<stdin>:3:6: error: assigning to 'void (*)() throw(int)' from incompatible type
'void ()'
pf = f;
^ ~
This should be one error (possibly with a note), not two pointing out the same
issue.
--
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