Bug 51533
Summary: | ICE on legal(?) code | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Dimitri Papadopoulos <dpo> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.1 | ||||||
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: | 2004-10-05 18:41:48 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
Dimitri Papadopoulos
2001-08-11 23:06:23 UTC
Created attachment 27413 [details]
Preprocessed file. Compile to reproduce ICE.
Ooops, it just occured to me that template <class Y> friend default_storage; should be template <class Y> friend class default_storage; thanks to GCC 3.0 which gracefully reports: In file included from TEST.cc:13: /home/papadopo/shfj-main/include/shfj/smart/rcptr.h:61: friend declaration requires class-key, i.e. `friend class shfj::default_storage<Y>' Maybe you could have GCC 2.96 avoid the ICE and exit gracefully too. BTW, I'm using gcc-c++-2.96-85. Patch added to patch queue for 2.96-97, will be fixed there. Thanks for the report. gcc-2.96 is too old. Its release cycle was finished long ago. Also Jakub wrote about fixing the bug in gcc-2.96-97. Therefore I am closing the case. If it is still important we could reopen it. |