From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21118 invoked by alias); 8 Oct 2004 11:14:04 -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 21101 invoked by uid 48); 8 Oct 2004 11:14:03 -0000 Date: Fri, 08 Oct 2004 11:14:00 -0000 Message-ID: <20041008111403.21100.qmail@sourceware.org> From: "nathan at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041008110105.17891.k.karamazen@trinite.nl> References: <20041008110105.17891.k.karamazen@trinite.nl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17891] An expression accepted as lvalue by compiler but not assigned at run time X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg01022.txt.bz2 List-Id: ------- Additional Comments From nathan at gcc dot gnu dot org 2004-10-08 11:13 ------- The code is ill-formed, and requires a diagnostic. Gcc3.4 and later give the following errors 17891.ii:8: error: invalid initialization of non-const reference of type 'void*&' from a temporary of type 'void*' 17891.ii:1: error: in passing argument 1 of `void f1(void*&)' -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17891