[LLVMbugs] [Bug 5242] New: clang should not AKA the same type twice

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Oct 18 23:00:36 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list