This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug Report - Parse error using "-pedantic"
- To: gcc-bugs <gcc-bugs at gcc dot gnu dot org>
- Subject: Bug Report - Parse error using "-pedantic"
- From: Philippe Bouchard <philippeb at corel dot com>
- Date: Thu, 19 Oct 2000 18:12:48 +0000
Version:
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
Output:
parser.cpp: In method `void Table<T>::function()':
parser.cpp:7: parse error before `;'
Source:
#include <list>
template <typename T> struct Table
{
void function()
{
list<T>::iterator p;
}
};
int main(...)
{
Table<int> table;
table.function();
}
Compiles fine without the "-pedantic" option.
Thank you.
begin:vcard
n:Bouchard;Philippe
x-mozilla-html:FALSE
org:Corel Linux
adr:;;;;;;
version:2.1
email;internet:philippeb@corel.com
title:Software Engineer
x-mozilla-cpt:;0
fn:Philippe Bouchard
end:vcard