There are several places that crash when processing wchars: the dump
methods used for debugging, -ast-dump, and -ast-dump-xml.  This was from
StmtDumper attempting to get a standard string from StringLiteral, which is
only allowed when the string is composed of standard chars.  A different
visitor, StmtPrinter, already has the logic to nicely print out strings of
different types.  This patch moves this logic into a function in
StringLiteral class and has both StmtDumper and StmtPrinter call this new
function.

Attachment: wchar-ast-dump.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to