[cfe-dev] Compile basic_string.h with clang
Pan, Wei
wei.pan at intel.com
Mon Mar 19 09:30:04 PDT 2012
Hi all,
I recently noticed that the current trunk will cause an assertion failure in StringLiteral::getString().
This happens if we run "clang++ -cc1 -dump-ast " with basic_string.h included indirectly,
where wstring to_wstring(int) is implemented. The following FIXME explains the failure.
void StmtDumper::VisitStringLiteral(StringLiteral *Str)
DumpExpr(Str);
// FIXME: this doesn't print wstrings right. <<<<<<<<<
....
OS.write_escaped(Str->getString());
OS << '"';
}
This annoying problem appears in Clang but should be fixed in llvm instead?
Thanks,
Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120319/d42de56e/attachment.html>
More information about the cfe-dev
mailing list