[Bug c++/54137] expected primary-expression error when accessing template method

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 31 11:33:00 GMT 2012


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-31 11:33:00 UTC ---
You need to say

        return GetFabric().template CreateObject<Item>();

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



More information about the Gcc-bugs mailing list