From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23521 invoked by alias); 8 Oct 2002 08:39:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23512 invoked from network); 8 Oct 2002 08:39:51 -0000 Received: from unknown (HELO mail.bossmedia.se) (212.247.84.108) by sources.redhat.com with SMTP; 8 Oct 2002 08:39:51 -0000 Received: from nilhen1 (Not Verified[193.12.46.193]) by mail.bossmedia.se with MailMarshal (v5,0,3,74) id ; Tue, 08 Oct 2002 10:40:36 +0200 Reply-To: From: "Henrik Nilsson \(Developer\)" To: Subject: Problem default type converting Date: Tue, 08 Oct 2002 01:39:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-SW-Source: 2002-10/txt/msg00063.txt.bz2 I'm using GCC 2.96 on Linux My code class CString{ CString() CString(const char *) } class MyClass{ f(const CString &s){} } MyClass my; my.f("") Then I get compiler error. Due to the C++ standard my.f("") should create a temp object like this my.f(CString("")) but instead I get compiler error This is not a big problem I'm just surprised that it seems like GCC is not following the standard. Any one who know more abot this? Henrik