diff options
| author | Dodji Seketeli <dodji@redhat.com> | 2010-01-29 14:30:41 +0000 | 
|---|---|---|
| committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2010-01-29 15:30:41 +0100 | 
| commit | 1a048f8232e75f673c8227b8bcd89e0242946512 (patch) | |
| tree | 2ee93041dfe1e8e764098880a0e8717715707c64 /libcpp/files.c | |
| parent | eb6b98c71cbb85510d9b85c2b7439176b730a9b7 (diff) | |
| download | gcc-1a048f8232e75f673c8227b8bcd89e0242946512.zip gcc-1a048f8232e75f673c8227b8bcd89e0242946512.tar.gz gcc-1a048f8232e75f673c8227b8bcd89e0242946512.tar.bz2  | |
Fix PRs c++/42758, c++/42634, c++/42797
... and mitigate PR c++/42336
gcc/cp/ChangeLog:
	PR c++/42758
	PR c++/42634
	PR c++/42336
	PR c++/42797
	PR c++/42880
	* cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
	SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
	GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
	* pt.c (coerce_template_parms, type_unification_real,
	expand_template_argument_pack, coerce_template_parameter_pack):
	Set the non default template args count.
	(current_template_args): Always set non defaulted
	template args count when compiled with --enable-checking
	(tsubst_template_args, type_unification_real): Propagate the non
	defaulted template args count.
	* error.c (get_non_default_template_args_count): Renamed
	count_non_default_template_args into this. Don't calculate the
	non default template argument count anymore. Use the new
	accessor macros above to get it.
	(dump_template_argument_list, dump_type, dump_decl,
	dump_template_parms): Adjust.
	* parser.c (cp_parser_template_argument_list): Always set defaulted
	template args count when compiled with --enable-checking.
gcc/testsuite/ChangeLog:
	PR c++/42758
	PR c++/42634
	PR c++/42336
	PR c++/42797
	PR c++/42880
	* g++.dg/other/crash-5.C: New test.
	* g++.dg/other/crash-6.C: New test.
	* g++.dg/other/crash-7.C: New test.
	* g++.dg/other/crash-8.C: New test.
From-SVN: r156351
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions
