This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21903] Default argument of template function causes a compile-time error
- 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: 3 Jun 2005 23:08:56 -0000
- Subject: [Bug c++/21903] Default argument of template function causes a compile-time error
- References: <20050603201311.21903.SSacek@appsecinc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-03 23:08 -------
This code is still invalid, B<int> is instantiated while in the class which means that the default
argument is not going to be parsed at all. ICC and Comeau give the same error. Now the off by one
error is easy to fix, I actually fixed it before copying where the error output was.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21903