[Bug c++/29084] parser error, reject valid code.

2006-09-14 Thread pluto at agmk dot net


--- Comment #1 from pluto at agmk dot net  2006-09-14 13:49 ---
reduced testcase:

template  typename T  struct X { };
template  typename T, typename U  struct Y { };
struct A
{
void f( X Y int, int   v = X Y int, int  () );
};

tmp.cpp:5: error: expected #8216;,#8217; or #8216;...#8217; before
#8216;#8217; token
tmp.cpp:5: error: wrong number of template arguments (1, should be 2)
tmp.cpp:2: error: provided for #8216;templateclass T, class U struct
Y#8217;
tmp.cpp:5: error: template argument 1 is invalid
tmp.cpp:5: error: default argument missing for parameter 2 of #8216;void
A::f(XYint, int , int)#8217;


-- 


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



[Bug c++/29084] parser error, reject valid code.

2006-09-14 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2006-09-14 14:59 ---
There is a Defect report about the comma in default arguments.


-- 


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



[Bug c++/29084] parser error, reject valid code.

2006-09-14 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-09-14 15:00 ---
In fact this is a dup of bug 57 which is still SUSPENDED because the defect
report has not been resolved yet.

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


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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