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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2005 04:37:36 -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 bangerth at dealii dot org 2005-06-04 04:37 -------
I'm sorry, but I have no idea what you mean by that. If you want to say
that O::B<int> is instantiated by O::D, which is still inside O, yes, of
course that's the case. And I'm happy if the default arguments aren't
parsed at that time. But the actual use of O::B<int> happens long after that.
I just haven't the slightest idea where to look this up in the standard...
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21903