http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35722
--- Comment #14 from Tristan Wibberley <tristan.wibberley at gmail dot com> 2011-05-20 19:30:15 UTC --- Ed, It depends on the rest of your program that you cut out. As given, no it's not supposed to work. see http://gcc.gnu.org/bugs/ for how to report your problem if you have a good reason to think there's a bug. But for help with c++ you need to go elsewhere for example the ##c++ chatroom on IRC chat as detailed at http://freenode.net/