This is the mail archive of the gcc-bugs@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]

[Bug c++/29236] [4.0/4.1/4.2 Regression] Bogus ambiguity with templates + friend



------- 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


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