Go to file
Mark Mitchell 7993382ed0 re PR c++/9878 (error: non-lvalue in unary `&' wrongly issued)
PR c++/9878
	* call.c (convert_class_to_reference): Correct conversion
	sequences.
	(reference_binding): Add ref_bound_directly_to_rvalue_p parameter.
	(implicit_conversion): Adjust call to reference_binding.
	(add_candidate): Change type of candidates parameter.
	(add_function_candidate): Likewise.
	(add_conv_candidate): Likewise.
	(build_builtin_candidate): Likewise.
	(add_builtin_candidate): Likewise.
	(add_builtin_candidates): Likewise.
	(add_template_candidate_real): Likewise.
	(add_template_candidate): Likewise.
	(add_template_conv_candidate): Likewise.
	(build_user_type_conversion_1): Adjust accordingly.
	(build_object_call): Likewise.
	(build_conditional_expr): Likewise.
	(add_candidates): Likewise.
	(build_new_op): Likewise.
	(convert_like_real): Use USER_CONV_CAND.  Use build_nop.
	(build_new_method_call): Adjust calls to add_function_candidate.
	(make_temporary_var_for_ref_to_temp): New function.
	(initialize_reference): Add decl parameter.
	* class.c (build_rtti_vtbl_entries): Use build_address and
	build_nop.
	* cp-tree.h (initialize_reference): Change prototype.
	(make_temporary_var_for_ref_to_temp): New function.
	(build_type_conversion): Change prototype.
	(build_address): New function.
	(build_nop): Likewise.
	* cvt.c (cp_convert_to_pointer): Adjust call to
	build_type_conversion.  Avoid indicating redundant NOP_EXPRs.
	Use build_nop.
	(convert_to_pointer_force): Use build_nop.
	(build_up_reference): Use make_temporary_var_for_ref_to_temp.
	(convert_to_reference): Adjust call to build_type_conversion.
	(ocp_convert): Likewise.
	(build_type_conversion): Remove for_sure parameter.
	* decl.c (grok_reference_init): Use initialize_reference.
	* typeck.c (build_address): New function.
	(build_nop): Likewise.
	(build_unary_op): Use them.
	(build_ptrmemfunc): Tidy slightly.
	(convert_for_initialization): Adjust call to
	initialize_reference.
	* typeck2.c (store_init_value): Remove #if 0'd code.

	PR c++/9878
	* g++.dg/init/ref1.C: New test.

From-SVN: r63735
2003-03-03 21:55:25 +00:00
boehm-gc mark_rts.c (GC_cond_register_dynamic_libraries): add. 2003-03-03 19:34:11 +00:00
config
contrib gcc_build: Use $GCC_CVS/$CVS instead of cvs. 2003-03-03 12:09:38 -08:00
fastjar fastjar.texi: Update to GFDL 1.2. 2003-02-04 01:27:53 +00:00
gcc re PR c++/9878 (error: non-lvalue in unary `&' wrongly issued) 2003-03-03 21:55:25 +00:00
include * libiberty.h: Document return value of physmem routines. 2003-02-27 20:28:40 +00:00
INSTALL
libf2c configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status. 2003-02-20 09:08:45 +00:00
libffi configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status. 2003-02-20 09:08:45 +00:00
libiberty * physmem.c: Formatting changes from upstream. 2003-02-27 20:18:20 +00:00
libjava 2003-03-03 Michael Koch <konqueror@gmx.de> 2003-03-03 14:36:48 +00:00
libobjc configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status. 2003-02-20 09:08:45 +00:00
libstdc++-v3 Daily bump. 2003-03-03 00:17:04 +00:00
maintainer-scripts
zlib configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status. 2003-02-20 09:08:45 +00:00
.cvsignore
ChangeLog Add myself to the write-after-approval list. 2003-03-03 20:26:10 +00:00
config-ml.in
config.guess config.guess: Updated to 2003-01-30's version. 2003-01-30 22:44:14 +00:00
config.if config.if: If gcc_version is already set, just use it. 2003-01-30 11:52:51 +00:00
config.sub config.guess: Updated to 2003-01-30's version. 2003-01-30 22:44:14 +00:00
configure remove site-file support - it is obsolete 2003-02-25 14:05:36 +00:00
configure.in Add support for kaOS as cross build target system. 2003-02-25 10:45:00 +00:00
COPYING
COPYING.LIB
install-sh
libtool.m4 libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld. 2003-02-20 01:11:51 +00:00
ltcf-c.sh
ltcf-cxx.sh libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld. 2003-02-20 01:11:51 +00:00
ltcf-gcj.sh ltcf-cxx.sh: Replace $linker_flags with $compiler_flags wherever it is used as argument to $CC. 2003-02-19 23:50:23 +00:00
ltconfig libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld. 2003-02-20 02:09:45 +00:00
ltmain.sh
MAINTAINERS Add myself to the write-after-approval list. 2003-03-03 20:26:10 +00:00
Makefile.def Makefile.def: Remove "snavigator", "grep", and "db" modules. 2003-02-06 15:55:11 -05:00
Makefile.in Makefile.tpl: Rearrange. 2003-02-28 18:01:54 +00:00
Makefile.tpl Makefile.tpl: Rearrange. 2003-02-28 18:01:54 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

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.