From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20100 invoked by alias); 19 Jun 2006 16:25:14 -0000 Received: (qmail 20086 invoked by uid 22791); 19 Jun 2006 16:25:10 -0000 X-Spam-Check-By: sourceware.org Received: from mk-ironport-3.mail.uk.tiscali.com (HELO mk-ironport-3.mail.uk.tiscali.com) (212.74.114.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 Jun 2006 16:25:08 +0000 Received: from 88-105-176-119.dynamic.dsl.as9105.com (HELO mk-cpfrontend.uk.tiscali.com) ([88.105.176.119]) by mk-ironport-3.mail.uk.tiscali.com with ESMTP; 19 Jun 2006 17:25:00 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AQAAAChqlkQLiV8 Received: from [88.105.176.119] by mk-cpfrontend.uk.tiscali.com with HTTP; Mon, 19 Jun 2006 17:24:59 +0100 Date: Mon, 19 Jun 2006 16:25:00 -0000 Message-ID: <4424AC7900247450@mk-cpfrontend-3.mail.uk.tiscali.com> From: am611@tiscali.co.uk Subject: Re: Error message for 'ambiguous overload for operator>>' in gcc 4.1.0 To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 X-SW-Source: 2006-06/txt/msg00150.txt.bz2 Thanks for the various comments; my conclusions: - The problem was caused by erroneous use of 'const'. Now resolved. - The same error msg does occur in gcc 3.3.5, but in my case had been masked by a (long) cast e.g. the line str >> (long) pal.used; does not get flagged as an error. - It would have been easier to solve if the error message had flagged the incorrect use of 'const'. I must gen up on 'const' a bit... AM ___________________________________________________________ Tiscali Broadband from 14.99 with free setup! http://www.tiscali.co.uk/products/broadband/