This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The code snippet
struct A { friend ~A(); };
from PR22293 used to give a warning:
PR22293.cc:3: warning: member functions are implicitly friends of their class
We now have an ICE that I want to fix. The question is: Should I restore the previous situation, or should I issue an error like:
PR22293.cc:3: error: unqualified destructor '~A' cannot be declared friend
-- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |