[LLVMbugs] [Bug 7084] New: Incompatible functions in declarative region not being checked for overload compatibility

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 7 03:34:06 PDT 2010


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

           Summary: Incompatible functions in declarative region not being
                    checked for overload compatibility
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schaub-johannes at web.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


I think clang should diagnose the following:

struct string { };
void f() { string g(); g(); }
void g() { } // diagnostic expected here
int main() { f(); }

Currently it generates code that segfaults at runtime for me.

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