[Bug c++/53926] g++ fails to compile valid template code with casting to QVariant and back

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 11 11:36:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53926

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-11 11:36:09 UTC ---
It's not valid code, you ned to say foo().template value<T>()

http://womble.decadent.org.uk/c++/template-faq.html#disambiguation



More information about the Gcc-bugs mailing list