[Bug c++/21903] [4.0 regression] Default argument of template function causes a compile-time error
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 9 07:47:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list