This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29236] [4.0/4.1/4.2 Regression] Bogus ambiguity with templates + friend
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2006 18:36:50 -0000
- Subject: [Bug c++/29236] [4.0/4.1/4.2 Regression] Bogus ambiguity with templates + friend
- References: <bug-29236-13309@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from mmitchel at gcc dot gnu dot org 2006-10-16 18:36 -------
The problem here is that tsubst, for a TEMPLATE_TEMPLATE_PARM, reduces the
parameter level for the new TEMPLATE_TEMPLATE_PARM (via a call to
reduce_template_parm_level), but does not reset
TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL to a substituted version of the template.
Therefore, when we consider merging the friend declaration and the global
declaration, we think that there types are different.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2006-10-10 04:11:45 |2006-10-16 18:36:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29236