Go to file
Adam Butcher 0dca5025f0 Refactor implicit function template implementation and fix 58534, 58536, 58548, 58549 and 58637.
gcc/
	* tree.c (grow_tree_vec_stat): New function ...
	* tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
	and macro front-end.

gcc/cp/
	PR c++/58534
	PR c++/58536
	PR c++/58548
	PR c++/58549
	PR c++/58637
	* parser.h (struct cp_parser): New members implicit_template_parms,
	implicit_template_scope and auto_is_implicit_function_template_parm_p.
	* parser.c (add_implicit_template_parms): Refactor as ...
	(synthesize_implicit_template_parm): ... this to append a new template
	type parm to the current template parameter list (introducing a new list
	if necessary).  Removed push_deferring_access_checks.
	(finish_fully_implicit_template): Removed pop_deferring_access_checks.
	(cp_parser_new): Initialize new cp_parser members.
	(cp_parser_parameter_declaration_clause): Consider auto as implicit
	template parm when parsing a parameter declaration (unless parsing an
	explicit specialization).
	(cp_parser_parameter_declaration_list): Remove local
	implicit_template_parms counter and reset cp_parser implicit template
	state when complete.
	(cp_parser_lambda_expression): Reset implicit template cp_parser members
	whilst generating lambda class.
	(cp_parser_function_definition_after_declarator): Reset implicit
	template cp_parser members whilst parsing function definition.
	(make_generic_type_name): Respell '<autoN>' as 'auto:N' which works
	better with template diagnostics.
	(cp_parser_simple_type_specifier): Synthesize implicit template parm on
	parsing 'auto' if auto_is_implicit_function_template_parm_p and provide
	diagnostics ...
	* decl.c (grokdeclarator): ... that were previously done here.

gcc/testsuite/g++.dg/
	* cpp1y/pr58534.C: New testcase.
	* cpp1y/pr58536.C: New testcase.
	* cpp1y/pr58548.C: New testcase.
	* cpp1y/pr58549.C: New testcase.
	* cpp1y/pr58637.C: New testcase.

From-SVN: r204714
2013-11-12 20:17:33 +00:00
INSTALL README: Also refer to the online installation instructions. 2012-08-25 20:48:20 +00:00
boehm-gc libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
config mh-darwin (BOOT_CFLAGS): Only add -mdynamic-no-pic for m32 hosts. 2013-09-29 19:16:45 +00:00
contrib Add new nds32 port, including machine description, libgcc, and documentation. 2013-10-31 17:08:16 +00:00
fixincludes Fix up ChangeLog entries (name, e-mail, formatting, otherwise). 2013-10-23 21:30:54 +00:00
gcc Refactor implicit function template implementation and fix 58534, 58536, 58548, 58549 and 58637. 2013-11-12 20:17:33 +00:00
gnattools re PR ada/58239 (pretty-print.c:789: undefined reference to `operator delete(void*)') 2013-09-01 16:51:41 +00:00
include re PR tree-optimization/58689 ([meta-bug] __attribute__((returns_nonnull)) enhancements) 2013-10-29 13:15:48 +00:00
intl
libada configure: Regenerated. 2013-03-27 23:00:53 +01:00
libatomic fenv.c: New file. 2013-11-10 12:45:42 +01:00
libbacktrace elf.c (elf_add): Don't get the wrong offsets if a debug section is missing. 2013-10-18 04:24:48 +00:00
libcilkrts +2013-11-08 Balaji V. 2013-11-08 11:52:27 -08:00
libcpp macro.c (_cpp_builtin_macro_text): Correct wording of two warnings. 2013-11-06 23:28:08 +01:00
libdecnumber Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
libffi libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
libgcc Time profiler introduced. 2013-11-11 23:21:02 +00:00
libgfortran Set close-on-exec flag when opening files. 2013-11-10 22:34:29 +02:00
libgo net: Fix TCP keepalive handling for Solaris. 2013-11-11 21:25:42 +00:00
libgomp libgomp: Prepare for testcases without -fopenmp. 2013-11-07 16:07:58 +01:00
libiberty cp-demangle.c (d_copy_templates): Cast result of malloc to (struct d_print_template *). 2013-11-12 21:02:21 +01:00
libitm libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
libjava libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
libobjc libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
libquadmath libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
libsanitizer Check __x86_64__ for FPU state 2013-11-06 13:52:29 -08:00
libssp libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
libstdc++-v3 re PR libstdc++/54562 (mutex and condition variable timers) 2013-11-11 13:33:48 +00:00
libvtv Fix up ChangeLog entries (name, e-mail, formatting, otherwise). 2013-10-23 21:30:54 +00:00
lto-plugin Fix up ChangeLog entries (name, e-mail, formatting, otherwise). 2013-10-23 21:30:54 +00:00
maintainer-scripts crontab: Disable snapshots from gcc-4_6-branch. 2013-04-12 17:07:38 +02:00
zlib Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
.dir-locals.el * .dir-locals.el: Add. 2013-10-16 18:25:31 +00:00
.gitignore * .gitignore: Import from gdb repository. 2013-01-10 10:48:46 -05:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Makefile.in: Regenerate. 2013-11-07 19:09:31 +01:00
ChangeLog.tree-ssa
MAINTAINERS * MAINTAINERS (Write After Approval): Add myself. 2013-11-01 22:10:37 +00:00
Makefile.def Added Cilk runtime library (libcilkrts) into GCC. 2013-10-29 11:37:47 -07:00
Makefile.in Makefile.in: Regenerate. 2013-11-07 19:09:31 +01:00
Makefile.tpl Makefile.tpl: Fix typo. 2013-11-07 16:08:10 +01:00
README * README: Document use of ranges of years in copyright notices. 2012-07-16 15:01:34 +01:00
compile
config-ml.in
config.guess Import from savannah.gnu.org: 2013-10-01 17:50:56 +01:00
config.rpath
config.sub Import from savannah.gnu.org: 2013-10-01 17:50:56 +01:00
configure Disable libcilkrts when C++ is not used. 2013-11-05 06:43:37 -08:00
configure.ac Disable libcilkrts when C++ is not used. 2013-11-05 06:43:37 -08:00
depcomp
install-sh
libtool-ldflags
libtool.m4 libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. 2013-09-20 19:17:52 +09:30
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
symlink-tree
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.