This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29503] New: Internal Compiler Error with Friend + Template + Typedef


#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]