This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/27666] [4.0/4.1/4.2 regression] ICE with volatile in conditional expression



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]