From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21961 invoked by alias); 17 Jul 2004 17:49:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21716 invoked by uid 48); 17 Jul 2004 17:49:41 -0000 Date: Sat, 17 Jul 2004 17:49:00 -0000 Message-ID: <20040717174941.21715.qmail@sourceware.org> From: "g dot s at arcor dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040717110358.16605.g.s@arcor.de> References: <20040717110358.16605.g.s@arcor.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16605] expected unqualified-id before '(' token in vector.tcc and stl_bvector.h X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02147.txt.bz2 List-Id: ------- Additional Comments From g dot s at arcor dot de 2004-07-17 17:49 ------- The complete error message is: c++ -I.. -DHAVE_VSNPRINTF -O2 -Wall -Wno-unknown-pragmas -Wno-implicit-int -fpermissive -c HTTPServer.cxx cc1plus: warning: command line option "-Wno-implicit-int" is valid for C/ObjC but not for C++ In file included from /usr/bin/../lib/gcc/i386-pc-solaris2.9/3.4.1/../../../../include/c++/3.4.1/vector:75, from ../rfb/Region.h:25, from ../rfb/UpdateTracker.h:23, from ../rfb/HTTPServer.h:32, from HTTPServer.cxx:19: /usr/bin/../lib/gcc/i386-pc-solaris2.9/3.4.1/../../../../include/c++/3.4.1/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator >, size_t, const _Tp&)': /usr/bin/../lib/gcc/i386-pc-solaris2.9/3.4.1/../../../../include/c++/3.4.1/bits/vector.tcc:307: error: expected unqualified-id before '(' token *** Error code 1 make: Fatal error: Command failed for target `HTTPServer.o' Current working directory /disk3/vnc-4.0-unixsrc/rfb *** Error code 1 make: Fatal error: Command failed for target `all' I don't know how to make a test case, I didn't even write the code which fails to compile. But I took a look at vector.tcc of gcc 3.3.2 and saw the missing "std::" in front of "max" and removed it from vector.tcc auf gcc 3.4.1 and then VNC compiled without any errors. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16605