* C++ compiler bug using V6.0-010 (Rev. 564)
@ 1998-12-10 5:00 Mike Schilling
1998-12-10 5:00 ` Mike Schilling
0 siblings, 1 reply; 2+ messages in thread
From: Mike Schilling @ 1998-12-10 5:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C++ compiler bug using V6.0-010 (Rev. 564)
1998-12-10 5:00 C++ compiler bug using V6.0-010 (Rev. 564) Mike Schilling
@ 1998-12-10 5:00 ` Mike Schilling
0 siblings, 0 replies; 2+ messages in thread
From: Mike Schilling @ 1998-12-10 5:00 UTC (permalink / raw)
Many thanks to Compaq's staff, who replied via e-mail almost
immediately, and determined within an hour that this is fixed in V6.1.
Mike
Mike Schilling wrote:
>
>[Error description]
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-12-10 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-10 5:00 C++ compiler bug using V6.0-010 (Rev. 564) Mike Schilling
1998-12-10 5:00 ` Mike Schilling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox