When trying to create a template using a specialized form inside in a static
class it fails to link.
Ex.:
template<class T> struct StaticClass
{
        static void ret() {}
};

template<class T>
void func(void function()) {}

template<class T> struct Test
{
        void doIt()
        {
                func<T>(StaticClass<Test<double> >::ret);
        }
};

-- 
           Summary: Fails a template instantiation.
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bakgab at vnet dot hu
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to