This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16605] expected unqualified-id before '(' token in vector.tcc and stl_bvector.h


------- 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<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >, 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]