This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Don't treat enumeration vals as lvalues (PR c++/41131)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Aug 2009 15:44:34 -0700
- Subject: Re: [C++ PATCH] Don't treat enumeration vals as lvalues (PR c++/41131)
- References: <20090820214404.GP4462@tyan-ft48-01.lab.bos.redhat.com>
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