------- 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