From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9114 invoked by alias); 22 Oct 2002 22:16:04 -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 9101 invoked by uid 71); 22 Oct 2002 22:16:03 -0000 Date: Tue, 22 Oct 2002 15:16:00 -0000 Message-ID: <20021022221603.9100.qmail@sources.redhat.com> To: nathan@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/383: C++v2,96:member template conversion not implicit Reply-To: Wolfgang Bangerth X-SW-Source: 2002-10/txt/msg00840.txt.bz2 List-Id: The following reply was made to PR c++/383; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-bugs@gcc.gnu.org, Cc: jcampbell3@prodigy.net Subject: Re: c++/383: C++v2,96:member template conversion not implicit Date: Tue, 22 Oct 2002 17:14:06 -0500 (CDT) This bug still applies with present CVS and 3.2. A slightly simpler to read form of the report is this: ----------------------------------------- template struct X { template operator X& (void); }; int main(void) { X x; static_cast >(x); X y = x; }; ----------------------------------------- The messages are y.cc: In function `int main()': y.cc:7: error: no matching function for call to `X::X(X&)' y.cc:1: error: candidates are: X::X() y.cc:1: error: X::X(const X&) y.cc:8: error: conversion from `X' to non-scalar type `X' requested Regards Wolfgang ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth