This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/57: [parser] templates in default arguments
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: nathan at codesourcery dot com, <gcc-bugs at gcc dot gnu dot org>, <gcc-gnats at gcc dot gnu dot org>
- Date: Wed, 23 Oct 2002 20:10:32 -0500 (CDT)
- Subject: Re: c++/57: [parser] templates in default arguments
> > void foo (int = A<T, U>::n) { }
> > ---------------------------------------------
> > In the default argument parsing, there's a "," not nested inside
> > parentheses. This stops default argument parsing. If you agree, then this
> > report should be closed.
>
> FWIW Comeau accepts it in strict conforming mode.
I think I recall there was a defect report about this, but I can't seem to
find it anymore, and I also don't recall whether it was resolved either
way or other ...
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth