[LLVMbugs] [Bug 6286] Provide more informative diagnostic for failed qualification conversions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 22 14:46:50 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=6286
Kaelyn Uhrain <rikka at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rikka at google.com
Resolution| |FIXED
--- Comment #1 from Kaelyn Uhrain <rikka at google.com> 2012-06-22 16:46:50 CDT ---
clang 3.1 gives a more detailed message for the original example, and it is a
warning instead of an error:
$ ./bin/clang -fsyntax-only t.cc
t.cc:1:48: warning: comparison of distinct pointer types ('void **' and 'const
void **') uses
non-standard composite pointer type 'const void *const *'
void test(void **a, void const **b) { (void)(a == b); }
~ ^ ~
1 warning generated.
The message is a tad cryptic in this case, but the key point is still rather
clear: the comparison between the two different pointer types violates the C++
standard.
--
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