Go to file
Dodji Seketeli 82daaf6d55 PR c++/51145 - Alias template in elaborated-type-specifier accepted
gcc/cp/

	PR c++/51145
	* decl.c (check_elaborated_type_specifier): Gracefully handle
	error_mark_node.  Accept bound template template parameters.
	Update diagnostics for alias template specializations.  Update
	comment.
	* parser.c (cp_parser_elaborated_type_specifier): Use
	check_elaborated_type_specifier for simple-template-ids as well.

gcc/testsuite/

	PR c++/51145
	* g++.dg/cpp0x/alias-decl-14.C: New test.
	* g++.dg/cpp0x/alias-decl-2.C: Adjust for tests that were wrongly
	passing before.
	* g++.dg/cpp0x/alias-decl-10.C: Likewise and adjust for diagnostic
	change.
	* g++.dg/ext/attrib27.C: Adjust for diagnostic change.
	* g++.dg/lookup/struct1.C: Likewise.
	* g++.dg/parse/elab1.C: Likewise.
	* g++.dg/parse/elab2.C: Likewise.
	* g++.dg/parse/int-as-enum1.C: Likewise.
	* g++.dg/parse/typedef1.C: Likewise.
	* g++.dg/parse/typedef3.C: Likewise.
	* g++.dg/parse/typedef4.C: Likewise.
	* g++.dg/parse/typedef5.C: Likewise.
	* g++.dg/template/crash26.C: Likewise.
	* g++.dg/template/nontype4.C: Likewise.
	* g++.old-deja/g++.benjamin/typedef01.C: Likewise.
	* g++.old-deja/g++.brendan/line1.C: Likewise.
	* g++.old-deja/g++.other/elab1.C: Likewise.
	* g++.old-deja/g++.other/syntax4.C: Likewise.

From-SVN: r181653
2011-11-23 09:23:59 +01:00
INSTALL
boehm-gc Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
config weakref.m4: New file. 2011-11-22 14:49:11 +00:00
contrib Support sun symbol versioning in libitm 2011-11-21 17:03:50 +00:00
fixincludes inclhack.def (aix_once_init_[12]): New fixes. 2011-11-16 21:28:07 -05:00
gcc PR c++/51145 - Alias template in elaborated-type-specifier accepted 2011-11-23 09:23:59 +01:00
gnattools
include Merge from transactional-memory branch. 2011-11-08 11:13:41 +00:00
intl
libada Fix minor issues 2011-11-19 16:24:22 +00:00
libcpp line-map.h (linemap_dump): Declare. 2011-11-22 11:13:00 -05:00
libdecnumber
libffi Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libgcc darwin.h (ENDFILE_SPEC): New. 2011-11-22 13:51:07 +00:00
libgfortran Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libgo runtime: New lock/note implementation. 2011-11-22 20:24:44 +00:00
libgomp Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libiberty Merge from transactional-memory branch. 2011-11-08 11:13:41 +00:00
libitm weakref.m4: New file. 2011-11-22 14:49:11 +00:00
libjava Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libmudflap Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libobjc Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libquadmath Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libssp Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
libstdc++-v3 fix linenos 2011-11-22 10:53:28 -05:00
lto-plugin Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
maintainer-scripts update_web_docs_svn: Make $DOCSDIR group writable after creating it. 2011-11-21 01:16:24 +00:00
zlib Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog * MAINTAINERS: Add self as co-maintainer of the Ada front end. 2011-11-21 19:50:11 +00:00
ChangeLog.tree-ssa
MAINTAINERS * MAINTAINERS: Add self as co-maintainer of the Ada front end. 2011-11-21 19:50:11 +00:00
Makefile.def configure.ac: Add tool checks for READELF and READELF_FOR_TARGET. 2011-11-09 13:57:26 -05:00
Makefile.in configure.ac: Add tool checks for READELF and READELF_FOR_TARGET. 2011-11-09 13:57:26 -05:00
Makefile.tpl configure.ac: Add tool checks for READELF and READELF_FOR_TARGET. 2011-11-09 13:57:26 -05:00
README
compile
config-ml.in
config.guess
config.rpath
config.sub * config.sub: Update to version 2011-10-29 (added rl78) 2011-11-01 20:56:32 -04:00
configure re PR target/49992 (lto-bootstrap reveals duplicate symbols on x86_64-apple-darwin11) 2011-11-18 10:52:32 +00:00
configure.ac re PR target/49992 (lto-bootstrap reveals duplicate symbols on x86_64-apple-darwin11) 2011-11-18 10:52:32 +00:00
depcomp
install-sh
libtool-ldflags
libtool.m4 Additional fixes for FreeBSD-10 build: 2011-11-21 20:22:35 +01:00
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.