From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7721 invoked by alias); 25 Jul 2005 11:06:40 -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 7699 invoked by uid 22791); 25 Jul 2005 11:06:35 -0000 Received: from bgerelbas02.asiapac.hp.net (HELO bgerelbas02.ind.hp.com) (15.219.201.135) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 25 Jul 2005 11:06:35 +0000 Received: from bgeexg11.asiapacific.cpqcorp.net (bgeexg11.asiapacific.cpqcorp.net [16.150.33.26]) by bgerelbas02.ind.hp.com (Postfix) with ESMTP id 128E532EB4; Mon, 25 Jul 2005 16:36:05 +0530 (IST) Received: from bgeexc04.asiapacific.cpqcorp.net ([16.150.33.49]) by bgeexg11.asiapacific.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 25 Jul 2005 16:35:58 +0530 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: FW: error: expected unqualified-id before '(' token with gcc 3.4.3 Date: Mon, 25 Jul 2005 11:06:00 -0000 Message-ID: From: "Hegde, Ramesh" To: Cc: "Hegde, Ramesh" , X-SW-Source: 2005-07/txt/msg00255.txt.bz2 =20 Hello=20 =20 I have taken the opensoruce from http://www-personal.engin.umich.edu/~wagnerr/ConfigFile.html for reading configuration file. It perfectly works fine with gcc 3.2.3 and it fail to compile with gcc 3.4.3 on RHEL 4 =20 I am getting following error =20 g++ -Wno-trigraphs -Wno-unused -Wno-deprecated -Wpointer-arith -fno-common -fno-strict-aliasing -fexceptions -DOC_GCC_C -DOC_GCC_OBJC -DOC_GCC_CPP -fPIC -D_GNU_SOURCE -DOC_GNUSTEP -DOC_LITTLE_ENDIAN -DPEGASUS_PLATFORM_LINUX_IX86_GNU -DDEBUG -DDINDICATION_DIR=3D\"/var/cache/pegasus\" -O -g -O2 "-DCM_WHATSTRING=3D\"evtfrmw IndicationProvider CM_WHATSTRING_PLACEHOLDER_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"" -fpermissive -I/opt/OC/OCSDK_supportability_W8_00/include -I/opt/OC/OCSDK_supportability_W6_00/include -I/opt/tog-pegasus/include -Ibuild/evtfrmw/code/IndicationProvider -Imod_exp/evtfrmw/export/libAis -c build/evtfrmw/code/IndicationProvider/OCEventProvider.cpp -o build/evtfrmw/code/IndicationProvider/OCEventProvider.o In file included from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/sstre am:640, from build/evtfrmw/code/IndicationProvider/ConfigFile.h:50, from build/evtfrmw/code/IndicationProvider/OCEventProvider.cpp:12: /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/ sstream.tcc: In member function `virtual typename std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename _Traits::int_type)': /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/ sstream.tcc:104: error: expected unqualified-id before '(' token cons: *** [build/evtfrmw/code/IndicationProvider/OCEventProvider.o] Error 1 cons: errors constructing build/evtfrmw/code/IndicationProvider/OCEventProvider.o Can anybody encounted this problem? Any idea where to fix this problem?=20 =20 I have found the same error reported by somebody on Solaris http://www.opensolaris.org/jive/thread.jspa?threadID=3D974&tstart=3D0 with no responses =20 Thanks in Advance =20 Regards Ramesh