This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4707: Misleading error message on compilation
- To: gcc-gnats at gcc dot gnu dot org, debian-gcc at lists dot debian dot org
- Subject: c++/4707: Misleading error message on compilation
- From: dLux <dlux at spam dot dlux dot hu>
- Date: Fri, 26 Oct 2001 17:11:33 +0200
>Number: 4707
>Category: c++
>Synopsis: g++ complains about a "typedef", but no typedefs are there
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 26 15:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: dLux
>Release: 3.0.2 (Debian) (Debian testing/unstable)
>Organization:
dLux
>Environment:
System: Linux dl 2.4.12-ac3 #1 H OKT 22 23:07:03 CEST 2001 i686 unknown
Architecture: i686
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
gcc+-3.0 reports the following error:
socket.hh: In member function `void dLuxx::Socket<Addr>::connect(Addr&)':
socket.hh:92: parse error before `typedef'
socket.hh:93: confused by earlier errors, bailing out
There are NO such "typedef" around the line.
>How-To-Repeat:
This is the command line I used to generate this message:
g++-3.0 -DPACKAGE=\"libasq\" -DVERSION=\"0.1\" -DHAVE_DLFCN_H=1 -I. -I . -g -Wp,-MD,.deps/socket.pp -c socket.cc -fPIC -DPIC
I created a precompiler output and put it to my site:
http://hacks.dlux.hu/gcc-bug/typedefbug.gz
>Fix:
I don't know how to fix this problem...
>Release-Note:
>Audit-Trail:
>Unformatted: