This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28302] [4.0/4.1/4.2 regression] ICE with bit-complement for vectors
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2006 00:40:19 -0000
- Subject: [Bug c++/28302] [4.0/4.1/4.2 regression] ICE with bit-complement for vectors
- References: <bug-28302-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-14 00:40 -------
This fixes it for me (but I don't have time to test it):
Index: typeck.c
===================================================================
--- typeck.c (revision 115413)
+++ typeck.c (working copy)
@@ -3984,7 +3984,7 @@ build_unary_op (enum tree_code code, tre
else if (!(arg = build_expr_type_conversion (WANT_INT | WANT_ENUM,
arg, true)))
errstring = "wrong type argument to bit-complement";
- else if (!noconvert)
+ else if (!noconvert && CP_INTEGRAL_TYPE_P (TREE_TYPE (arg)))
arg = perform_integral_promotions (arg);
break;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-07-14 00:40:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28302