[Bug c++/21084] parse error on valid dependent default argument

2005-04-18 Thread sstrasser at systemhaus-gruppe dot de

--- Additional Comments From sstrasser at systemhaus-gruppe dot de  
2005-04-18 12:04 ---
here's another, simpler, testcase:

template typename T1,typename T2 class A; //it works with only 1 parameter

class B{
templatetypename U
void hoh(typename AU,U::depname a=AU,U::depname());
};

I'd appreciate a simple workaround for this one, because you can't typedef the
dependent type like in the original testcase

-- 


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


[Bug c++/21084] parse error on valid dependent default argument

2005-04-18 Thread pinskia at gcc dot gnu dot org

--- 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{
templatetypename U
void hoh(typename AU,U::depname a=(AU,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