c++/6122: Internal compiler error
celliott@tga.com
celliott@tga.com
Mon Apr 1 09:46:00 GMT 2002
>Number: 6122
>Category: c++
>Synopsis: Internal compiler error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 01 09:46:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Chris Elliott
>Release: gcc 2.95.3-5 (cygwin special)
>Organization:
>Environment:
Cygwin x86
>Description:
Compiler gives an internal compile error. Fails on many architectures and also on version 3.0.
>How-To-Repeat:
gcc -c -save-temps test.cpp
>Fix:
None
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="test.ii"
Content-Disposition: inline; filename="test.ii"
# 1 "test.cpp"
typedef unsigned int size_t;
template <class T> class TestTemplate
{
public:
~TestTemplate();
};
class CTestClass1
{
};
typedef TestTemplate<CTestClass1> PTestClass1;
class TestClass2
{
public:
inline void operator delete(void * BufP, PTestClass1 PoolP);
inline void * operator new(size_t Size, PTestClass1 PoolP);
TestClass2(unsigned int EnvSize);
};
class TestClass3
{
public:
PTestClass1 Ptr();
};
extern TestClass3 * _ExtPtr;
class TestClass4
{
public:
void Func();
};
void TestClass4::Func()
{
TestClass2 * TestPtr = new(_ExtPtr->Ptr()) TestClass2(28);
}
More information about the Gcc-bugs
mailing list