PR c++/8615
* error.c (dump_expr): Handle character constants with
TREE_OVERFLOW set.
PR c++/8615
* g++.dg/template/char1.C: New test.
From-SVN: r59760
+2002-12-02 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/8615
+ * error.c (dump_expr): Handle character constants with
+ TREE_OVERFLOW set.
+
2002-12-01 Mark Mitchell <mark@codesourcery.com>
PR c++/5919
else if (type == char_type_node)
{
output_add_character (scratch_buffer, '\'');
- dump_char (tree_low_cst (t, 0));
+ if (host_integerp (t, TREE_UNSIGNED (type)))
+ dump_char (tree_low_cst (t, TREE_UNSIGNED (type)));
+ else
+ output_printf (scratch_buffer, "\\x%x", TREE_INT_CST_LOW (t));
output_add_character (scratch_buffer, '\'');
}
else
+2002-12-02 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/8615
+ * g++.dg/template/char1.C: New test.
+
2002-12-01 Mark Mitchell <mark@codesourcery.com>
PR c++/5919