[LLVMbugs] [Bug 7126] New: Clang should always provide (aka ...) info

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 12 23:24:17 PDT 2010


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

           Summary: Clang should always provide (aka ...) info
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: quality-of-implementation
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chandlerc at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This is just embarressing:

% cat t7.cc 
typedef long Py_ssize_t;

int foo(Py_ssize_t *);

int bar() {
 typedef int Py_ssize_t;
 Py_ssize_t pos;
 return foo(&pos);
}

% ./bin/clang++ -fsyntax-only t7.cc
t7.cc:8:9: error: no matching function for call to 'foo'
 return foo(&pos);
        ^~~
t7.cc:3:5: note: candidate function not viable: no known conversion from
'Py_ssize_t *' to 'Py_ssize_t *' for 1st argument
int foo(Py_ssize_t *);
    ^
1 error generated.

GCC does the same thing because it doesn't even *have* the real type names, but
we can do better!

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