From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16007 invoked by alias); 24 Apr 2014 03:15:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15994 invoked by uid 89); 24 Apr 2014 03:15:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: web101119.mail.kks.yahoo.co.jp Received: from web101119.mail.kks.yahoo.co.jp (HELO web101119.mail.kks.yahoo.co.jp) (183.79.100.203) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Thu, 24 Apr 2014 03:15:35 +0000 Received: (qmail 38327 invoked by uid 60001); 24 Apr 2014 03:15:31 -0000 Message-ID: <510697.35308.qm@web101119.mail.kks.yahoo.co.jp> Received: from [133.6.57.2] by web101119.mail.kks.yahoo.co.jp via HTTP; Thu, 24 Apr 2014 12:15:30 JST Date: Thu, 24 Apr 2014 03:15:00 -0000 From: Tatsuro MATSUOKA Reply-To: matsuoka@nuce.nagoya-u.ac.jp Subject: ambiguous overload for operator [] on Cygwin_X86-64 To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00535.txt.bz2 Hello I tried to build wxWidgets-3.0.0 on Cygwin. For Cygwin x86, the build was successful. However, on Cygwin x86_64, the build failed at compling a cpp source file (= src/common/appbase.cpp). ./include/wx/filename.h: In static member function 'static wxUniChar wxFile= Name::GetPathSeparator(wxPathFormat)': ./include/wx/filename.h:473:43: error: ambiguous overload for 'operator[]' = (operand types are 'wxString' and 'unsigned int') { return GetPathSeparators(format)[0u]; } The code "(format)[0u]" seemed to be accepted g++-4.8.2 on Cygwin x86_64. What the difference of g++ between that of Cygwin x86 and that of Cygwin x= 86_64? Regards Tatsuro -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple