From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22487 invoked by alias); 14 Jul 2006 00:40:26 -0000 Received: (qmail 22451 invoked by uid 48); 14 Jul 2006 00:40:19 -0000 Date: Fri, 14 Jul 2006 00:40:00 -0000 Message-ID: <20060714004019.22450.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/28302] [4.0/4.1/4.2 regression] ICE with bit-complement for vectors In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg01022.txt.bz2 List-Id: ------- 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