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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to