[LLVMbugs] [Bug 7000] Diagnostic for Invalid Cast should give Actual Type Name in addition to Typedef Type Name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 13 05:11:33 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7000
Chandler Carruth <chandlerc at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |chandlerc at gmail.com
Resolution| |FIXED
--- Comment #1 from Chandler Carruth <chandlerc at gmail.com> 2010-05-13 07:11:32 CDT ---
As of r103712, Clang should produce:
% ./bin/clang++ t8.cc
t8.cc:4:25: error: static_cast from 'char *' to 'value_type const *' (aka
'unsigned char const *') is not allowed
value_type const *p = static_cast<value_type const *>(p_);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
t8.cc:8:3: note: in instantiation of function template specialization
'update_n<char>' requested here
update_n(s);
^
1 error generated.
I think this fixes the issue, but feel free to re-open if there are further
tweaks.
--
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