------- Comment #14 from andris dot pavenis at iki dot fi 2008-11-15 09:53 ------- Created an attachment (id=16681) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16681&action=view) Another C++ example to ilustrate misleading error message about missing typename keyword
This is a short example where one is getting completely misleeding error message: test.cpp:22: error: expected constructor, destructor, or type conversion before & token I had to try to compile this example with Visual C++ to figured out what's the reason of compiler error was. It reported it more clearly. Tried: GNU C++ (GCC) version 4.3.0 20080428 (Red Hat 4.3.0-8) (x86_64-redhat-linux) GNU C++ version 3.4.6 20060404 (Red Hat 3.4.6-9) (x86_64-redhat-linux) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15179