call.c (joust): Don't warn about "confusing" conversions to the same type.
authorJason Merrill <jason@gcc.gnu.org>
Tue, 14 Jul 1998 12:09:17 +0000 (08:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 14 Jul 1998 12:09:17 +0000 (08:09 -0400)
commit9a68c51f569f618cf372efca5a2f601eba312e45
tree13711c734408582f70f53cba399aa32d27a0b544
parentb33cfabac1aeab51373ff803976ec5dbdfcf8bdc
call.c (joust): Don't warn about "confusing" conversions to the same type.

* call.c (joust): Don't warn about "confusing" conversions to the
same type.
* class.c (push_nested_class): Complain about namespaces.
* decl.c (start_decl): Enter the object's namespace.
(cp_finish_decl): Leave it.
(grokdeclarator): Likewise.
* decl2.c (check_decl_namespace): New function.
(finish_file): Call it.
* parse.y (complex_direct_notype_declarator): Set complexity
of namespace-qualified ids to -1, enter the namespace.
* method.c (build_template_decl_overload): Expect _DECL as first
parameter. Put context temporarily into current_namespace.
* pt.c (check_explicit_specialization): Change caller.
(tsubst): Likewise.
* init.c (build_offset_ref): Call mark_used and
convert_from_reference for namespace members.

From-SVN: r21135
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/method.c
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/pt.c