[LLVMbugs] [Bug 10828] New: No warning for Most Vexing Parse of 0-argument function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 1 09:32:33 PDT 2011


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

           Summary: No warning for Most Vexing Parse of 0-argument
                    function
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Clang gives no warning for the following code:

class C {
  C () { }
};
void f() {
  C c();
}

We should warn on ambiguous declarations in block scope.

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