[LLVMbugs] [Bug 8140] New: Duplicate (?) error on function pointer assignment with incompatible exception specification

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 13 14:31:46 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list