From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17851 invoked by alias); 17 Dec 2012 14:38:07 -0000 Received: (qmail 17727 invoked by uid 22791); 17 Dec 2012 14:38:05 -0000 X-SWARE-Spam-Status: No, hits=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Dec 2012 14:37:56 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBHEbtxX010568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Dec 2012 09:37:55 -0500 Received: from fweimer.str.redhat.com (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBHEbru0011582 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 17 Dec 2012 09:37:55 -0500 Message-ID: <50CF2E41.7040600@redhat.com> Date: Mon, 17 Dec 2012 14:38:00 -0000 From: Florian Weimer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: gbarbehenn@linear.com CC: gcc-help@gcc.gnu.org Subject: Re: Strange warnings from GCC++ 4.6.2 in Atmel Studio 6 References: <50CF2B6C.2010905@linear.com> In-Reply-To: <50CF2B6C.2010905@linear.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00067.txt.bz2 On 12/17/2012 03:25 PM, George H. Barbehenn wrote: > I'm not sure why the compiler is confusing the overloads, is "String st" > somehow equivalent to "char *st"? This depends on your environment, GCC doesn't provide a String type. I suspect that GCC and the C++03 standard resolve the call to the char * variant of the method, and do not take a constructor String(const char *) into account, even if it existed. -- Florian Weimer / Red Hat Product Security Team