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

sstrasser at systemhaus-gruppe dot de gcc-bugzilla@gcc.gnu.org
Mon Apr 18 12:05:00 GMT 2005


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



More information about the Gcc-bugs mailing list