This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22293] [4.0/4.1 regression] ICE declaring destructor as friend
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2005 10:52:03 -0000
- Subject: [Bug c++/22293] [4.0/4.1 regression] ICE declaring destructor as friend
- References: <20050704103903.22293.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-04 10:52 -------
This is invalid code.
The following is still invalid code (but closer to legal code):
struct B
{
~B();
};
struct A
{
friend ~B();
};
Add B:: infront of the destructor fixes both the ICE and validness of the testcase.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22293