This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]