------- Comment #2 from redi at gcc dot gnu dot org 2010-06-21 11:15 ------- I already suggested that link in Bug 44559 comment 2, please use something other than GCC's Bugzilla to learn the differences between standard C++ and what used to be accepted by various old compilers.
You can also use the online Comeau compiler at http://www.comeaucomputing.com/tryitout/ to test your assumptions. If Comeau and GCC both give an error then you can be 99.9% sure the problem is in your code not the compiler. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44607