[LLVMbugs] [Bug 7325] New: Clang too permissive with use of member function lacking a call

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 8 22:24:08 PDT 2010


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

           Summary: Clang too permissive with use of member function
                    lacking a call
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This code is ill-formed, but Clang accepts it:

  struct X {
    bool foo();
  };

  void f(X *xp) {
    if (xp->foo) { }
  }

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