[LLVMbugs] [Bug 7470] New: clang c++ incorrectly accepts const qualifier on function pointer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 23 13:05:27 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7470

           Summary: clang c++ incorrectly accepts const qualifier on
                    function pointer
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          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:
struct S {
  int (*f)() const;
};

Should be rejected per [dcl.fct]p4.

-- 
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