* match.c (gfc_match_call): Exit loop after setting i.

        * resolve.c (resolve_variable): Exit loop after setting seen.

        * expr.c (gfc_check_pointer_assign): Exit loop after setting
        * warn.

        * trans-array.c (set_loop_bounds): Exit loop after setting
        nonoptional_arr.

        * trans-io.c (gfc_trans_transfer): Exit loop after setting
        * seen_vector.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201316 138bc75d-0d04-0410-961f-82ee72b054a4
	* mangle.c (write_name): Check for null context.
	(write_unscoped_name): Allow PARM_DECL context.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201317 138bc75d-0d04-0410-961f-82ee72b054a4
/cp
2013-07-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57948
	* call.c (initialize_reference): Don't crash when reference_binding
	returns a conv with conv->kind == ck_ambig.

/testsuite
2013-07-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57948
	* g++.dg/conversion/ambig2.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201318 138bc75d-0d04-0410-961f-82ee72b054a4