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++/15980] parse error caused by default initializer for a template type function argument


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


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