This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53926] g++ fails to compile valid template code with casting to QVariant and back
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jul 2012 11:36:09 +0000
- Subject: [Bug c++/53926] g++ fails to compile valid template code with casting to QVariant and back
- Auto-submitted: auto-generated
- References: <bug-53926-4@http.gcc.gnu.org/bugzilla/>
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