re PR c++/14246 (Problems with templates, ice in write_template_arg_literal)
PR c++/14246 * mangle.c (write_template_arg_literal): Don't rely on identity for boolean constants. From-SVN: r78478
This commit is contained in:
parent
fecf735c67
commit
3cc8f58783
@ -1,3 +1,9 @@
|
||||
2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
||||
|
||||
PR c++/14246
|
||||
* mangle.c (write_template_arg_literal): Don't rely on identity for
|
||||
boolean constants.
|
||||
|
||||
2004-02-24 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* tree.c (build_exception_variant): Use check_qualified_type.
|
||||
|
@ -2121,9 +2121,9 @@ write_template_arg_literal (const tree value)
|
||||
{
|
||||
if (same_type_p (type, boolean_type_node))
|
||||
{
|
||||
if (value == boolean_false_node || integer_zerop (value))
|
||||
if (integer_zerop (value))
|
||||
write_unsigned_number (0);
|
||||
else if (value == boolean_true_node)
|
||||
else if (integer_onep (value))
|
||||
write_unsigned_number (1);
|
||||
else
|
||||
abort ();
|
||||
|
Loading…
Reference in New Issue
Block a user