[LLVMbugs] [Bug 16611] New: Type diffing of pointers to template specializations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 12 13:59:09 PDT 2013


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

            Bug ID: 16611
           Summary: Type diffing of pointers to template specializations
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dblaikie at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
                    rtrieu at google.com
    Classification: Unclassified

More generally - we should probably just consider type diffing of even
non-template types. (to highlight the difference between "const int" and "int"
for example)

A specific example:

template<typename T>
class foo {
};

void func(foo<int>);
void funcp(foo<int> *);

int main() {
  foo<const int> f;
  func(f);
  funcp(&f);
}

The note on the first error highlights "const " in blue, the second call has no
highlighting.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130712/7eaff8bc/attachment.html>


More information about the llvm-bugs mailing list