c++/1075: Internal Compiler Error

rforte@ati.com rforte@ati.com
Fri Dec 15 20:36:00 GMT 2000


>Number:         1075
>Category:       c++
>Synopsis:       Internal Compiler Error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 15 20:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     rforte@ati.com
>Release:        2.7.2.1
>Organization:
>Environment:

>Description:
/tools/gnu/gcc.2.95.2/bin/g++         -I../../../../../../auto/include -I../../../../../../cmn_lib/include/if -I../../../../../../cmn_lib/include/reg -I../../../../../../cmn_lib/include -I../../../../../../emu_lib/src/testchip -I../../../../../../emu_lib/src/gfx/g3d -I../.. -I. -Wall -g -fPIC -fpermissive -DUNIX_OS -DDEBUG -D_DEBUG -DBIGENDIAN_OS    -c ../../../../../../emu_lib/src/gfx/g3d/rp/zb/zb.cxx -o zb.o
../../../../../../emu_lib/src/gfx/g3d/rp/zb/zb.cxx: In method `void StencilUnit::SetCompareFunction(unsigned char)':
../../../../../../emu_lib/src/gfx/g3d/rp/zb/zb.cxx:685: Internal compiler error in `const_hash', at varasm.c:2372
>How-To-Repeat:
void StencilUnit::SetCompareFunction(uint8 val)
{
    bool (StencilUnit::*CompareFuncP[])(uint32, uint32) =
    {
        &StencilUnit::CompareNever,
        &StencilUnit::CompareLess,
        &StencilUnit::CompareLEqual,
        &StencilUnit::CompareEqual,
        &StencilUnit::CompareGEqual,
        &StencilUnit::CompareGreater,
        &StencilUnit::CompareNEqual,
        &StencilUnit::CompareAlways,
    };          //LINE 685

    cmpFunc = val;

    StencilCompareFuncP = CompareFuncP[val];
}
>Fix:
If I comment out the last item &StencilUnit::CompareAlways, 
it compiles fine.  If I replace CompareAlways with any other
Compare<FUNC> I get the same error again.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list