This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29503] New: Internal Compiler Error with Friend + Template + Typedef
- From: "mangeshaj at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2006 16:37:40 -0000
- Subject: [Bug c++/29503] New: Internal Compiler Error with Friend + Template + Typedef
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#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