re PR c++/21903 (Default argument of template function causes a compile-time error)
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 6 Jun 2005 17:29:41 +0000 (17:29 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 6 Jun 2005 17:29:41 +0000 (17:29 +0000)
commit5e97d404553157c7d74c399907b60125111f130f
treed1edb6ce6bd660310edc4d54628d90e79e651a0b
parent2fecaef4af7206fbae14906000e8c81007514706
re PR c++/21903 (Default argument of template function causes a compile-time error)

cp:
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.
testsuite:
PR 21903
* g++.dg/parse/defarg9.C: New.

From-SVN: r100669
gcc/cp/ChangeLog
gcc/cp/cp-tree.def
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/defarg9.C [new file with mode: 0644]