This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/3761] ICE in check_template_shadow, at cp/pt.c:2013, with friend and strange class hierarchy
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2004 02:03:32 -0000
- Subject: [Bug c++/3761] ICE in check_template_shadow, at cp/pt.c:2013, with friend and strange class hierarchy
- References: <20010721145600.3761.francis.andre@easynet.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-01-20 02:03 -------
I think the patch should be changed slightly. check_template_shadow handles
declarations (so maybe we could even add a my_friendly_assert about it), so
it's just invalid to pass it a TREE_LIST only because it's what we have around.
I think this should be lowered in push_class_level_binding, which, on the
contrary, is ready to handle a TREE_LIST.
Scott, can you prepare and test an updated patch? Or should I?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3761