[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,typ

[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{ template void hoh(typename A::depname a=A::depname()); }; I'd appreciate a s