#define SSP_X_SMALL_POOL_SIZE 10

template < class ObjT, unsigned int uiInitialSize >
class ObjectFactory
{
public:
        virtual ~ObjectFactory();
};

class TD{
public:

        typedef ObjectFactory< TD, SSP_X_SMALL_POOL_SIZE > Factory;

public:
        friend class TD::Factory;

}

Compiling the file with gcc gives :

New1.cpp:16: Internal compiler error.
New1.cpp:16: Internal compiler error:
New1.cpp:16: Please submit a full bug report.

Any Suggestions or workarounds.


-- 
           Summary: Internal Compiler Error with Friend + Template + Typedef
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mangeshaj at yahoo dot com


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

Reply via email to