[Bug c++/21903] [3.4/4.0/4.1 regression] Default argument of template function causes a compile-time error

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jun 6 17:30:00 GMT 2005


------- Additional Comments From nathan at gcc dot gnu dot org  2005-06-06 17:30 -------
Fixed mainline
2005-06-06  Nathan Sidwell  <nathan@codesourcery.com>

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

2005-06-06  Nathan Sidwell  <nathan@codesourcery.com>

	PR 21903
	* g++.dg/parse/defarg9.C: New.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21903



More information about the Gcc-bugs mailing list