This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7080: g++ ICE compiling Qt
- From: janis187 at us dot ibm dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 19 Jun 2002 23:59:49 -0000
- Subject: c++/7080: g++ ICE compiling Qt
- Reply-to: janis187 at us dot ibm dot com
>Number: 7080
>Category: c++
>Synopsis: g++ ICE compiling Qt
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Jun 19 17:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Janis Johnson
>Release: gcc version 3.2 20020619 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu and ia64-unknown-linux-gnu
>Description:
The current mainline gets an ICE compiling the attached test
case, extracted from the Qt application development toolkit.
With no compilation options other than -c, the output is:
qtbug.cpp: In function `void foo()':
qtbug.cpp:20: error: uninitialized const `r0'
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
I haven't tested Qt regularly with the mainline so I don't
know how long it's been failing. It passes with GCC 3.1 and
with the current 3.1 branch.
If "const" is removed from the definition of "member" then
the file compiles successfully.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="qtbug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="qtbug.cpp"
Ly8gVGhpcyB0ZXN0IGNhc2UgaXMgZXh0cmFjdGVkIGZyb20gdGhlIFF0IGFwcGxpY2F0aW9uIGRl
dmVsb3BtZW50Ci8vIHRvb2xraXQuICBJdCBjYXVzZXMgYW4gSUNFIGluIEdDQyAzLjIgMjAwMjA2
MTkgKGV4cGVyaW1lbnRhbCkuCgpjbGFzcyBRT2JqZWN0Owp0eXBlZGVmIHZvaWQgKFFPYmplY3Q6
OipRTWVtYmVyKSgpOwoKY2xhc3MgUUNvbm5lY3Rpb24KewpwdWJsaWM6CiAgICBRTWVtYmVyICpt
ZW1iZXIoKSBjb25zdCB7IHJldHVybiAoUU1lbWJlciopJm1icjsgfQogICAgUU1lbWJlciBtYnI7
Cn07CgpRQ29ubmVjdGlvbiAqYzsKCnZvaWQKZm9vICgpCnsKICAgIHR5cGVkZWYgdm9pZCAoUU9i
amVjdDo6KlJUMCkoKTsKICAgIFJUMCByMDsKCiAgICByMCA9IChSVDApKihjLT5tZW1iZXIoKSk7
Cn0K