This is the mail archive of the gcc-prs@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++/9687: The & operator does not accept parentheses on operand


The following reply was made to PR c++/9687; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Nathan Sidwell <nathan@codesourcery.com>
Cc: gcc-bugs@gcc.gnu.org, <marc.durantez@jp.sony.com>, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/9687: The & operator does not accept parentheses on operand
Date: Mon, 17 Feb 2003 13:01:07 -0600 (CST)

 Nathan,
 you might be right, thanks for double-checking on me. I shouldn't dismiss 
 reports late at night -- I misread this as the &(X::m) problem...
 
 > Are you sure? &(T::member) is disallowed, but I don't think &(random_expr) is.
 > Could you explain your deduction to me?
 
 The relevant clause is 5.3.1.2, stating that the operand shall be an 
 lvalue. This has nothing to do with the parenthesis, of course, so I guess 
 you're right.
 
 The present state is: 2.95--3.3 rejected the code. 3.4 now simply says
   warning: taking address of temporary
 I guess this improvement is the effect of your patch. So in effect the bug 
 has been fixed and the report can remain closed, right?
 
 Thanks again for having an open eye,
   W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth/
 
 
 


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