This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21903] [4.0 regression] Default argument of template function causes a compile-time error
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2005 07:47:20 -0000
- Subject: [Bug c++/21903] [4.0 regression] 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 nathan at gcc dot gnu dot org 2005-06-09 07:47 -------
Fixed on 3.4
2005-06-08 Nathan Sidwell <nathan@codesourcery.com>
PR c++/21903
* cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
* parser.c (cp_parser_late_parsing_default_args): Propagate parsed
argument to any early instantiations.
* pt.c (tsubst_arg_types): Chain early instantiation of default
arg.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4/4.0 regression] Default|[4.0 regression] Default
|argument of template |argument of template
|function causes a compile- |function causes a compile-
|time error |time error
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21903