possibly incorrect error message (gcc 2.7.2/linux)
Sun Oct 31 23:03:00 GMT 1999
Julian Hall wrote:
> The following definition causes an error message on gcc 2.7.2 when compiled
> with 'gcc -c -ansi test.cc'. All other compilers I have access to (Borland
> C++ 4.5, LCC 3.1) accept the code. The identifier/keyword 'typename' is
> not mentioned anywhere in the GCC 2.7.2 'info' documentation (except in
> narrative text where it is used to refer to the name of a type).
your code is being compiled as c++, because of the .cc suffix and lack of
command line option overriding that. `typename' is a reserved c++ keyword.
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
I have seen the death of PhotoShop -- it is called GIMP
email@example.com http://www.cs.bris.ac.uk/~nathan/ firstname.lastname@example.org
More information about the Gcc-bugs