This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15980] parse error caused by default initializer for a template type function 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: 13 Jun 2004 22:55:19 -0000
- Subject: [Bug c++/15980] parse error caused by default initializer for a template type function argument
- References: <20040613224201.15980.schoenebeck@software-engineering.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-13 22:55 -------
This is a dup of bug 57, one of the oldest bugs in GCC which is suspended because there is a DR report
about the problem and no can agrue of what the standard says.
A simple workaround is to do:
int wo_typedef(C<int, int> arg = (C<int,int>()))
note the parentheses around the default argument.
*** 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=15980