This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21084] parse error on valid dependent default argument
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Apr 2005 18:42:09 -0000
- Subject: [Bug c++/21084] parse error on valid dependent default argument
- References: <20050418112052.21084.sstrasser@systemhaus-gruppe.de>
- Reply-to: gcc-bugzilla 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{
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