From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16097 invoked by alias); 26 Dec 2008 18:41:38 -0000 Received: (qmail 16089 invoked by uid 22791); 26 Dec 2008 18:41:38 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sovereign.computergmbh.de (HELO sovereign.computergmbh.de) (85.214.69.204) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Dec 2008 18:41:02 +0000 Received: by sovereign.computergmbh.de (Postfix, from userid 25121) id E05731803857C; Fri, 26 Dec 2008 19:40:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by sovereign.computergmbh.de (Postfix) with ESMTP id DA51B1C00FE66; Fri, 26 Dec 2008 19:40:58 +0100 (CET) Date: Fri, 26 Dec 2008 18:44:00 -0000 From: Jan Engelhardt To: fimer cc: gcc-help@gcc.gnu.org Subject: Re: GCC Error In-Reply-To: <21172193.post@talk.nabble.com> Message-ID: References: <20528286.post@talk.nabble.com> <21172193.post@talk.nabble.com> User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: 2008-12/txt/msg00254.txt.bz2 On Friday 2008-12-26 07:29, fimer wrote: >> >> There is little we can do to help you with so little information. >> >> That said, the most likely problem is that the code is doing something >> like this: >> >> class C { void C::fn(); } >> >> That is invalid C++ syntax, but older versions of gcc--before gcc 3.4, >> I think--used to accept it. The "C::" must be omitted. > >If it is, can this also be resolved by adding any option to compile command? Can't you just fix the code?