public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9878
@ 2003-03-03 22:06 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2003-03-03 22:06 UTC (permalink / raw)
  To: mmitchel; +Cc: gcc-prs

The following reply was made to PR c++/9878; it has been noted by GNATS.

From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/9878
Date: 3 Mar 2003 21:58:27 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Branch: 	gcc-3_3-branch
 Changes by:	mmitchel@gcc.gnu.org	2003-03-03 21:58:27
 
 Modified files:
 	gcc/cp         : ChangeLog call.c class.c cp-tree.h cvt.c decl.c 
 	                 typeck.c typeck2.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: ref1.C 
 
 Log message:
 	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.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.52&r2=1.3076.2.53
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.341.2.5&r2=1.341.2.6
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.499.2.5&r2=1.499.2.6
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.776.2.6&r2=1.776.2.7
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.126&r2=1.126.2.1
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.20&r2=1.965.2.21
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.436.2.2&r2=1.436.2.3
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.132.4.2&r2=1.132.4.3
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.69&r2=1.2261.2.70
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9878
@ 2003-03-03 22:06 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2003-03-03 22:06 UTC (permalink / raw)
  To: mmitchel; +Cc: gcc-prs

The following reply was made to PR c++/9878; it has been noted by GNATS.

From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/9878
Date: 3 Mar 2003 21:58:27 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Branch: 	gcc-3_3-branch
 Changes by:	mmitchel@gcc.gnu.org	2003-03-03 21:58:27
 
 Modified files:
 	gcc/cp         : ChangeLog call.c class.c cp-tree.h cvt.c decl.c 
 	                 typeck.c typeck2.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: ref1.C 
 
 Log message:
 	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.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.52&r2=1.3076.2.53
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.341.2.5&r2=1.341.2.6
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.499.2.5&r2=1.499.2.6
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.776.2.6&r2=1.776.2.7
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.126&r2=1.126.2.1
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.20&r2=1.965.2.21
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.436.2.2&r2=1.436.2.3
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.132.4.2&r2=1.132.4.3
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.69&r2=1.2261.2.70
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9878
@ 2003-03-03 21:56 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2003-03-03 21:56 UTC (permalink / raw)
  To: mmitchel; +Cc: gcc-prs

The following reply was made to PR c++/9878; it has been noted by GNATS.

From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/9878
Date: 3 Mar 2003 21:55:25 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Changes by:	mmitchel@gcc.gnu.org	2003-03-03 21:55:25
 
 Modified files:
 	gcc/cp         : ChangeLog call.c class.c cp-tree.h cvt.c decl.c 
 	                 typeck.c typeck2.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: ref1.C 
 
 Log message:
 	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.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3227&r2=1.3228
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.357&r2=1.358
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.523&r2=1.524
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.816&r2=1.817
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&r1=1.132&r2=1.133
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1010&r2=1.1011
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.450&r2=1.451
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&r1=1.138&r2=1.139
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2462&r2=1.2463
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* c++/9878
@ 2003-03-03 21:56 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2003-03-03 21:56 UTC (permalink / raw)
  To: mmitchel; +Cc: gcc-prs

The following reply was made to PR c++/9878; it has been noted by GNATS.

From: mmitchel@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: c++/9878
Date: 3 Mar 2003 21:55:25 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Changes by:	mmitchel@gcc.gnu.org	2003-03-03 21:55:25
 
 Modified files:
 	gcc/cp         : ChangeLog call.c class.c cp-tree.h cvt.c decl.c 
 	                 typeck.c typeck2.c 
 	gcc/testsuite  : ChangeLog 
 Added files:
 	gcc/testsuite/g++.dg/init: ref1.C 
 
 Log message:
 	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.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3227&r2=1.3228
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.357&r2=1.358
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.523&r2=1.524
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.816&r2=1.817
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cvt.c.diff?cvsroot=gcc&r1=1.132&r2=1.133
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1010&r2=1.1011
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.450&r2=1.451
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&r1=1.138&r2=1.139
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2462&r2=1.2463
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-03 22:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-03 22:06 c++/9878 mmitchel
  -- strict thread matches above, loose matches on Subject: below --
2003-03-03 22:06 c++/9878 mmitchel
2003-03-03 21:56 c++/9878 mmitchel
2003-03-03 21:56 c++/9878 mmitchel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).