------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-18 
18:42 -------
This is a dup of one of the oldest "bug" in the database, PR 57.

Basically right now it might be a bug in GCC or GCC is correct in the standard, 
the work around is the 
following:
template< typename T1,typename T2> class A; //it works with only 1 parameter

class B{
template<typename U>
void hoh(typename A<U,U>::depname a=(A<U,U>::depname()));
};

Note the parenthesizes.

*** This bug has been marked as a duplicate of 57 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21084

Reply via email to