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]

C++ PATCH for c++/71738 (ICE with multi-template friend)


Here lookup_template_class is tsubsting a TEMPLATE_DECL and then
crashing when it gets a TEMPLATE_DECL back, when a TEMPLATE_DECL is
what it wants to end up with anyway.  This is silly.

The testcase is also silly, since members have access to their
enclosing class and so the friend declaration has no effect.  Less
silly variants of the testcase still don't work.  But fixing this ICE
doesn't need to wait for the more general fix for multi-level template
friends.

Tested x86_64-pc-linux-gnu, applying to trunk.

Attachment: 71738.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]