Bug 59395
Summary: | Internal compiler error in tree_low_cst at tree.c 4325 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Babu Arunachalam <babu.arunachalam> | ||||||||
Component: | gcc3 | Assignee: | Jakub Jelinek <jakub> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 7.2 | CC: | babu.arunachalam | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i686 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2002-12-15 19:19:16 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Babu Arunachalam
2002-02-06 22:37:15 UTC
Created attachment 44777 [details]
common header file oops_rt.h
Created attachment 44778 [details]
r.h
Created attachment 44779 [details]
r.cpp
I agree gcc should not ICE on this. Simplified testcase is: struct A { }; struct B : public A { char b[0x10000000]; } e; The problem is that some C++ class layout routines store temporarily structure sizes in HOST_WIDE_INT integer variables (this is normally 32-bit on IA-32) and the structure sizes are in bits, so the above means gcc cannot fit the structure size into signed 32-bit integer. Quick workaround is to recompile gcc so that it will use -DHOST_WIDE_INT=long\ long -DHOST_BITS_PER_WIDE_INT=64 (or, even better, don't build such huge classes). Verified ok in g++ 3.2 |