From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30994 invoked by alias); 6 Jun 2006 22:35:50 -0000 Received: (qmail 30971 invoked by alias); 6 Jun 2006 22:35:44 -0000 Date: Tue, 06 Jun 2006 22:36:00 -0000 Message-ID: <20060606223544.30970.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/27666] [4.0/4.1/4.2 regression] ICE with volatile in conditional expression In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mark at codesourcery dot com" 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-06/txt/msg00732.txt.bz2 List-Id: ------- Comment #4 from mark at codesourcery dot com 2006-06-06 22:35 ------- Subject: Re: [4.0/4.1/4.2 regression] ICE with volatile in conditional expression reichelt at gcc dot gnu dot org wrote: > ------- Comment #3 from reichelt at gcc dot gnu dot org 2006-06-06 22:12 ------- > The following code is accepted. Shouldn't it be rejected then? > > ======================================= > struct A > { > A(int); > }; > > void foo(volatile A a) { 1 ? a : a; } > ======================================= No, in that case the expression is an lvalue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27666