c++/954: Internal compiler error in extract_insn, at recog.c:2106

pook@enst.fr pook@enst.fr
Fri Dec 1 07:26:00 GMT 2000


>Number:         954
>Category:       c++
>Synopsis:       Internal compiler error in extract_insn, at recog.c:2106
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 01 07:26:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Stuart Pook
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.0)
>Organization:
>Environment:
RedHat Linux 7.0, kernel 2.2.16-22, glibc-2.2-5, i686
>Description:
% cat bug2.cc 
struct Colour
{
        static const Colour pink;
};

void f()
{
        Colour c = Colour::pink;
}
% g++ -v -c bug2.cc 
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c++ -D__GNUG__=2 -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ bug2.cc /tmp/ccvJDrDk.ii
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
 (i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++-3
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus /tmp/ccvJDrDk.ii -quiet -dumpbase bug2.cc -version -o /tmp/ccCjb9Ju.s
GNU C++ version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux) compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.0).
bug2.cc: In function `void f ()':
bug2.cc:9: Unrecognizable insn:
(insn 16 31 17 (set (reg:QI 42)
        (mem/s/u (symbol_ref:SI ("_6Colour.pink")) 0)) -1 (nil)
    (nil))
bug2.cc:9: Internal compiler error in extract_insn, at recog.c:2106
Please submit a full bug report.
>How-To-Repeat:
Just compile the attached 9 line program.
>Fix:
The problem goes away if you remove the "const".
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug2.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug2.cc"

c3RydWN0IENvbG91cgp7CglzdGF0aWMgY29uc3QgQ29sb3VyIHBpbms7Cn07Cgp2b2lkIGYoKQp7
CglDb2xvdXIgYyA9IENvbG91cjo6cGluazsKfQo=


More information about the Gcc-bugs mailing list