This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] Don't treat enumeration vals as lvalues (PR c++/41131)


Jakub Jelinek wrote:

> 2009-08-20  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/41131
> 	* tree.c (lvalue_p_1) <case CONST_DECL>: Return clk_none if
> 	not TREE_STATIC.
> 
> 	* g++.dg/expr/unary3.C: New test.

Ugly, but OK.

>From Andrew's message, it certainly sounds like we've under-specified
the IL; we've got different front ends using different constructs to
represent what should be just one thing.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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