From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15568 invoked by alias); 2 Aug 2007 16:35:02 -0000 Received: (qmail 15494 invoked by uid 48); 2 Aug 2007 16:34:49 -0000 Date: Thu, 02 Aug 2007 16:35:00 -0000 Message-ID: <20070802163449.15493.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/32658] Supposedly illegal conversion compiles without errors In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "aribrei at arcor dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00100.txt.bz2 ------- Comment #7 from aribrei at arcor dot de 2007-08-02 16:34 ------- (In reply to comment #6) > (In reply to comment #4) > > I should note that I do NOT want to see this bug fixed. I would prefer to hear > > that you won't "fix" it at all. So I can exploit this behavior as there is no > > standards-compliant way of achieving the same results. > > Is it possible that rvalue references will give you an alternative for the > desired effect? See the relevant papers linked to from here: > > http://open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2291.html > This would mean that instead of A::A(A &), I wrote A::A(A &&) and passing temporaries would automatically work? (Not sure if I correctly understand the r-value reference proposal.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32658