Go to file
Mark Mitchell 02ed62dd46 re PR c++/22137 (Internal error: Segmentation fault (program cc1plus))
PR c++/22137
	* cp-tree.h (QUALIFIED_NAME_IS_TEMPLATE): New macro.
	(check_template_keyword): New function.
	(finish_id_expression): Change prototoype.
	(finish_qualified_id_expr): Change prototype.
	(build_qualified_name): New function.
	(finish_class_member_access_expr): Change prototype.
	* init.c (build_offset_ref): Use build_qualified_name.
	* mangle.c (write_expression): Likewise.
	* parser.c (cp_parser_primary_expression): Remove qualifying_class
	parameter.  Add address_p and template_arg_p.  Use
	build_qualified_name.
	(cp_parser_id_expression): Default *template_p to
	template_keyword_p.  Check for invalid uses of the template
	keyword.
	(cp_parser_postfix_expression): Eliminate special handling for
	qualified names.  Adjust call to cp_parser_primary_expression.
	(cp_parser_postfix_dot_deref_expression): Adjust call to
	cp_parser_id_expression and finish_class_member_access_expr.
	(cp_parser_template_argument_list): Add comment.
	(cp_parser_template_argument): Adjust use of
	cp_parser_primary_expression.  Remove call to
	finish_qualified_id_expr.
	(cp_parser_lookup_name): Use build_qualified_name.
	* pt.c (tsubst): Use build_qualified_name.
	(tsubst_qualified_id): Likewise.  Adjust call to
	finish_qualified_id_expr.
	(tsubst_copy): Use build_qualified_name.
	(tsubst_copy_and_build): Adjusts call to finish_id_expression and
	finish_class_member_access_expr.
	* semantics.c (finish_non_static_data_member): Use
	build_qualified_name.
	(finish_qualified_id_expr): Add template_p and template_arg_p
	parameters.
	(finish_id_expression): Remove qualifiying_class parameter.  Add
	template_p, done, address_p, and template_arg_p.  Use
	build_qualified_name.  Adjust calls to
	finish_class_member_acess_expr.
	* tree.c (build_qualified_name): New function.
	* typeck.c (check_template_keyword): New function.
	(finish_class_member_access_expr): Add template_p argument.  Check
	for invalid uses of the template keyword.

	PR c++/22137
	* g++.dg/parse/template18.C: New test.
	* g++.dg/template/nontype15.C: Likewise.

From-SVN: r105463
2005-10-16 19:38:57 +00:00
boehm-gc gc_locks.h (GC_test_and_set): Change the constraint of the first operand to '0'. 2005-09-15 22:35:52 +00:00
config enable.m4: New file. 2005-09-23 16:33:47 +00:00
contrib * gcc_update: Update dependencies for libjava/aclocal.m4. 2005-08-23 10:55:08 +10:00
fastjar all files: Update FSF address. 2005-06-29 02:59:06 +00:00
fixincludes re PR target/23139 (-pedantic -ffast-math breaks working code) 2005-09-15 20:09:27 +01:00
gcc re PR c++/22137 (Internal error: Segmentation fault (program cc1plus)) 2005-10-16 19:38:57 +00:00
gnattools re PR ada/19959 (Can't compile gnattools for the cross targets) 2005-03-30 10:56:55 +02:00
include libiberty.h (expandargv): New function. 2005-09-26 20:55:10 +00:00
INSTALL
intl Update the address and telephone number of the FSF organization 2005-05-13 08:03:47 +00:00
libada Fix ada enabled "make html". 2005-04-27 18:39:03 -07:00
libcpp configure.in (arm-*-linux-gnueabi): Add to noconfigdirs target-libffi... 2005-10-08 18:17:20 +00:00
libffi libffi-dg.exp (libffi_target_compile): For darwin, use -shared-libgcc not -lgcc_s, and explain why. 2005-10-01 06:11:29 +00:00
libgfortran fpu-387.h (set_fpu): Remove extra ":" in stmxcsr. 2005-10-14 13:06:11 +02:00
libiberty * at-file.texi: Fix typo. 2005-10-07 14:21:47 +00:00
libjava re PR java/24251 (BC-compiled interfaces in libgcj can't be called from non-BC code) 2005-10-13 17:36:07 +00:00
libmudflap This avoids small data/gp reloc overflow errors. 2005-10-04 16:54:38 -07:00
libobjc re PR testsuite/23612 (obj-c++.dg/encode-6.mm fail with the GNU runtime) 2005-10-06 23:47:09 +00:00
libssp ALL: Update FSF address. 2005-08-17 03:26:45 +00:00
libstdc++-v3 functional: Add missing #pragma GCC system_header. 2005-10-15 19:46:58 +00:00
maintainer-scripts Modify update_version for SVN 2005-10-16 00:59:09 +00:00
zlib * Imported zlib 1.2.3; merged local changes. 2005-09-12 17:42:53 +00:00
.cvsignore
ABOUT-NLS
ChangeLog * MAINTAINERS (Write After Approval): Add self. 2005-10-15 01:45:20 +00:00
ChangeLog.tree-ssa
compile COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
config-ml.in COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
config.guess COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
config.rpath all files: Update FSF address. 2005-07-16 02:30:53 +00:00
config.sub COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
configure configure.in (arm-*-linux-gnueabi): Add to noconfigdirs target-libffi... 2005-10-08 18:17:20 +00:00
configure.in configure.in (arm-*-linux-gnueabi): Add to noconfigdirs target-libffi... 2005-10-08 18:17:20 +00:00
COPYING COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
COPYING.LIB Update COPYING.LIB from upstream. Correct last Changelog. 2005-07-14 01:41:54 +00:00
depcomp top level: 2005-06-13 08:26:05 +00:00
install-sh COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
libtool.m4 all files: Update FSF address. 2005-07-16 02:30:53 +00:00
ltcf-c.sh all files: Update FSF address. 2005-07-16 02:30:53 +00:00
ltcf-cxx.sh all files: Update FSF address. 2005-07-16 02:30:53 +00:00
ltcf-gcj.sh all files: Update FSF address. 2005-07-16 02:30:53 +00:00
ltconfig all files: Update FSF address. 2005-07-16 02:30:53 +00:00
ltmain.sh Fix misapplied hunk. 2005-10-05 09:19:53 +00:00
MAINTAINERS * MAINTAINERS (Write After Approval): Add self. 2005-10-15 01:45:20 +00:00
Makefile.def Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET. 2005-10-06 15:24:09 +00:00
Makefile.in Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET. 2005-10-06 15:24:09 +00:00
Makefile.tpl Makefile.def (flags_to_pass): Add OBJDUMP_FOR_TARGET. 2005-10-06 15:24:09 +00:00
missing COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
mkdep
mkinstalldirs COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
move-if-change all files: Update FSF address. 2005-07-16 02:30:53 +00:00
README
README.SCO * README.SCO: Update the URL. 2005-05-08 17:49:46 +00:00
symlink-tree COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00
ylwrap COPYING, [...]: Sync from upstream sources. 2005-07-14 01:08:13 +00:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file 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.html for how to report bugs usefully.