This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2957: -pedantic: parse error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2957: -pedantic: parse error
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Sat, 26 May 2001 20:07:26 +0200
- Cc: 87000-quiet at bugs dot debian dot org
- Reply-To: 87000-quiet at bugs dot debian dot org
>Number: 2957
>Category: c++
>Synopsis: -pedantic: parse error
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 26 11:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Debian BTS #87000
>Release: 3.0 20010526 (Debian prerelease) (Debian testing/unstable)
>Organization:
Debian
>Environment:
System: Linux smile 2.2.17 #1 Sun Oct 8 19:26:41 MEST 2000 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-x --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
example below compiled witch -pedantic makes:
$ g++-3.0 -pedantic foo.cc
foo.cc: In function `int foo()':
foo.cc:8: parse error before `;' token
w/o -pedantic it is ok.
#include <vector>
using namespace std;
template<class T>
int foo()
{
vector<T>::iterator i; /* this line: parse error before ';' */
}
int main(){return 0;}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: