http://llvm.org/bugs/show_bug.cgi?id=5242
Summary: clang should not AKA the same type twice
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Basic
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
clang will happily AKA the same type multiple times in a diagnostic, which is
redundant. For example:
daysthatwere:clang rjmccall$ ../../Debug/bin/clang-cc << END
typedef unsigned long *size_t;
size_t foo(void) {
return (size_t) 0 + (size_t) 0;
}
END
<stdin>:4:21: error: invalid operands to binary expression ('size_t'
(aka 'unsigned long *') and 'size_t' (aka 'unsigned long *'))
return (size_t) 0 + (size_t) 0;
~~~~~~~~~~ ^ ~~~~~~~~~~
I feel the diagnostic would be clearer without the second AKA clause.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs