From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31787 invoked by alias); 14 Nov 2002 21:36:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31773 invoked by uid 71); 14 Nov 2002 21:36:00 -0000 Date: Thu, 21 Nov 2002 02:56:00 -0000 Message-ID: <20021114213600.31772.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/2112 Reply-To: Wolfgang Bangerth X-SW-Source: 2002-11/txt/msg00735.txt.bz2 List-Id: The following reply was made to PR c++/2112; it has been noted by GNATS. From: Wolfgang Bangerth To: nathan@gcc.gnu.org Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/2112 Date: Thu, 14 Nov 2002 15:34:35 -0600 (CST) Nathan, you marked this report as confirmed. How strongly do you feel about this? I think the message I get is actually not wrong, so at the most I would concede to make it a feature-request and mark it as that (and maybe put it in suspended mode?). I agree that the message 2.95 (the lower one below) is more accurate, but I think the one we now get is also ok. Regards Wolfgang tmp/g> cat y.cc struct X; void f (int &); void f (X); void g () {f(1); }; tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ -c y.cc y.cc: In function `void g()': y.cc:5: error: no matching function for call to `f(int)' y.cc:3: error: candidates are: void f(int&) y.cc:4: error: void f(X) tmp/g> c++ -c y.cc y.cc: In function `void g()': y.cc:5: initialization of non-const reference type `int &' y.cc:5: from rvalue of type `int' y.cc:3: in passing argument 1 of `f(int &)' ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth