<div dir="ltr">On Tue, Aug 20, 2013 at 10:57 AM, Konstantin Tokarev <span dir="ltr"><<a href="mailto:annulen@yandex.ru" target="_blank">annulen@yandex.ru</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
In the code fragment [1] ConditionalOperator is lvalue in clang AST, while in code fragments [2] and [3] it is reported as rvalue. The difference is that [2] declares DEFAULT_WEIGHT as enum constant, and [3] declares it as int constant.<br>

<br>
Is this behavior correct? Why in [1] ConditionalOperator is not rvalue too?<br>
<br><br></blockquote><div>This behavior is correct.  It isn't an rvalue because the C++ standard says it's an lvalue.<br><br></div><div>-Eli<br></div></div></div></div>