From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19494 invoked by alias); 5 May 2004 01:24:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19484 invoked by uid 48); 5 May 2004 01:24:55 -0000 Date: Wed, 05 May 2004 01:24:00 -0000 Message-ID: <20040505012455.19483.qmail@sources.redhat.com> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040430023835.15218.pinskia@gcc.gnu.org> References: <20040430023835.15218.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15218] [DR 421] rvalue.field is not an lvalue X-Bugzilla-Reason: CC X-SW-Source: 2004-05/txt/msg00365.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2004-05-05 01:24 ------- Confirmed. We don't even give a warning about taking the address of a temporary :-( This is what I get from icc: g/x> icc -Xc -ansi -c x.cc x.cc(9): warning #592: variable "a" is used before its value is set return a; ^ x.cc(14): error: expression must be an lvalue or a function designator int* p = &f().a; // should reject as rvalue.field is still an rvalue ^ compilation aborted for x.cc (code 2) W. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-05-05 01:24:54 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15218