[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Wrong or confusing error message



>Submitter-Id:	net
>Originator:	Erik Schnetter
>Organization:	
>Confidential:	no
>Synopsis:	Wrong or confusing error message
>Severity:	non-critical
>Priority:	low
>Category:	c++
>Class:		sw-bug
>Release:	3.3.1 (Debian) (Debian testing/unstable)
>Environment:
System: Linux because 2.4.21-3-686 #1 Sun Jul 20 16:11:09 EST 2003 i686 GNU/Linux
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,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
>Description:

I receive the error messsage

$ g++ vv.cc
vv.cc: In constructor `iterator::iterator()':
vv.cc:3: error: syntax error before `;' token

where there is no semicolon in line 3.

>How-To-Repeat:

The input file was

class iterator {
  int * elt;
  iterator () : elt(int*()) { }
  int y;
};

>Fix:



Reply to: