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: Ping: PATCH to generate error for address of cast


On 14-Aug-2002, Nathan Sidwell <nathan@codesourcery.com> wrote:
> Matt Austern wrote:
> 
> > (By the way, you might be wondering why I'm doing all this
> > complicated stuff instead of just fixing lvalue_or_else.  Answer:
> > I found that changing lvalue_or_else breaks the case-as-lvalue
> > extension in a couple places.  Having a regression test suite is
> What are the semantics for cast-is-lvalue extension? (why is &(t)thing
> not allowed, but some other lvalue use is ok?)
>
> IMHO It would be better to add another parm to lvalue_or_else, and 
> fix it there - there may be other places which are erroneously
> allowing lvalue casts.
> 
> (I bet we can't kill the extension ... )

I would oppose deprecating or removing this extension --
because my code uses it! ;-)

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


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