From: Mike Schilling <mikes@forte.com>
Subject: C++ compiler bug using V6.0-010 (Rev. 564)
Date: 1998/12/10 [thread overview]
Message-ID: <36702B9B.4C7BA2E9@forte.com> (raw)
A NULL in a static list of method pointers causes the compiler error:
GEM ASSERTION, Compiler internal error - please submit problem report
I haven't been able to create a simple test case that reproduces the
problem, but the code causing the error looks like:
class MyClass
{
public:
void Method1();
char * Method3(int i);
};
static void (MyClass::* methPtrs0_1)() = &MyClass::Method1;
static char * (MyClass::* methPtrs0_3)(int i) = &MyClass::Method3;
typedef void (MyClass::* MethPtr)();
static const MethPtr methPtrs0[] =
{
(MethPtr)methPtrs0_1,
0,
(MethPtr)methPtrs0_3
};
Casting the 0 to MethPtr doesn't help, nor does replacing it with NULL.
Removing the 0 from the array initializer list eliminates the error.
Does anyone know if this is fixed in a patch or later release?
Thanks,
Mike
next reply other threads:[~1998-12-10 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-10 5:00 Mike Schilling [this message]
1998-12-10 5:00 ` C++ compiler bug using V6.0-010 (Rev. 564) Mike Schilling
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox