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

            Bug ID: 16612
           Summary: Type diffing should highlight reference/pointer-ness
           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

Given:

template<typename T>
class foo {
};

void func(foo<int>);

int main() {
  foo<int*> f;
  func(f);
}

(or similarly, with foo<int&>) template type diffing highlights the whole of
"int*" and "int" as being different - it'd be useful if it drew attention to
the "*" being the important difference. With longer/larger types it can be
difficult to notice that it's just a matter of passing a pointer versus passing
a value.

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