OSDN Git Service

PR c++/26114, c++/26115
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index b3f4111..7852572 100644 (file)
@@ -1,7 +1,142 @@
+2006-04-17  Janis Johnson  <janis187@us.ibm.com>
+
+       PR c++/26114, c++/26115
+       * typeck.c (cxx_mark_addressable): Restore check for extra_warnings.
+       * class.c (check_field_decls): Ditto.
+
+2006-04-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       * init.c (build_offset_ref): Remove superfluous temporary.
+
+2006-04-16  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/26365
+       * typeck.c (finish_class_member_access_expr): Robustify
+
+2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
+
+       * Make-lang.in (cp/pt.o): Depend on vecprim.h.
+       * pt.c: Include vecprim.h.
+       (inline_parm_levels): Change the type to VEC(int,heap) *.
+       (inline_parm_levels_used): Remove.
+       (maybe_begin_member_template_processing,
+       maybe_end_member_template_processing): Use VEC instead of
+       VARRAY.
+
+       * cp/call.c: Fix comment typos.
+
+2006-04-12  Mark Mitchell  <mark@codesourcery.com>
+
+       * parser.c (cp_parser_init_declarator): Initialize local variables
+       aggressively.
+
+2006-04-12  Roger Sayle  <roger@eyesopen.com>
+
+       * parser.c (cp_parser_init_declarator): Initialise
+       is_parenthesized_init to false to avoid compiler warning.
+
+2006-04-11  Mark Mitchell  <mark@codesourcery.com>
+
+       * cp-tree.h (build_operator_new_call): Adjust prototype.
+       (build_new_method_call): Likewise.
+       (build_op_delete_call): Likewise.
+       * init.c (build_raw_new_expr): New function.
+       (build_new_1): Pass information as parameters, rather than
+       bundling it into a NEW_EXPR.
+       (build_new): Adjust accordingly.
+       (build_vec_delete_1): Adjust for changes to build_op_delete_call.
+       (build_delete): Likewise.
+       * decl.c (finish_destructor_body): Likewise.
+       * call.c (build_operator_new_call): Return the allocation function
+       used.
+       (build_op_delete_call): Take allocation function as parameter.
+       (build_special_member_call): Adjust call to build_new_method_call.
+       (build_new_method_call): Return function called.
+       * pt.c (tsubst_copy_and_build): Adjust call to
+       build_new_method_call.
+       * semantics.c (finish_call_expr): Likewise.
+       * parser.c (cp_parser_postfix_expression): Likewise.
+       * typeck2.c (cxx_incomplete_type_diagnostic): Refer to
+       "incomplete", not "undefined", types. 
+
+       PR c++/26295
+       * decl.c (grokdeclarator): Remove namespace-handling code for
+       pointers-to-members.  
+       * parser.c (cp_parser_ptr_operator): Check for qualified names
+       using namespaces.
+
+       PR c++/26122
+       * parser.c (cp_parser_init_declarator): Adjust logic for deciding
+       whether or not to look for a pure-specifier.
+       (cp_parser_member_declaration): Likewise.
+
+2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
+
+       * decl2.c, pt.c, semantics.c: Fix comment typos.
+
+2006-04-06  Roger Sayle  <roger@eyesopen.com>
+
+       * call.c (null_ptr_cst_p): Add explicit TREE_CONSTANT_OVERFLOW check.
+
+2006-04-05  Jason Merrill  <jason@redhat.com>
+
+       * name-lookup.c (push_namespace_with_attribs): Temporarily disable
+       default hidden visibility for anonymous namespace.
+
+2006-03-29  Roger Sayle  <roger@eyesopen.com>
+
+       PR c++/22494
+       * init.c (build_vec_delete_1): Convert BASE pointer's type to
+       the base pointer type to avoid a type mismatch in the EQ_EXPR.
+
+2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * search.c (maybe_suppress_debug_info): If
+       flag_emit_class_debug_always then don't suppress.
+
+2006-03-22  Jason Merrill  <jason@redhat.com>
+
+        * name-lookup.c (push_namespace_with_attribs): Only apply hidden
+        visibility to anonymous namespaces if HAVE_GAS_HIDDEN.
+
+2006-03-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/26691
+       * cp-gimplify.c (cxx_omp_clause_apply_fn): Handle default arguments.
+
+2006-03-21  Jason Merrill  <jason@redhat.com>
+
+       PR c++/21581
+       * parser.c (cp_parser_declaration): Support attributes on
+       anonymous namespaces.
+       * name-lookup.c (push_namespace_with_attribs): Anonymous 
+       namespaces default to hidden visibility.
+
+2006-03-20  Jason Merrill  <jason@redhat.com>
+
+       PR c++/21764, c++/19238
+       * decl.c (cp_finish_decl): Call determine_visibility later.
+       (start_preparsed_function): Likewise.
+       * cp-tree.h (CP_TYPE_CONTEXT, TYPE_NAMESPACE_SCOPE_P): New macros.
+       (TYPE_CLASS_SCOPE_P, TYPE_FUNCTION_SCOPE_P): New macros.
+       * name-lookup.h (struct cp_binding_level): Add has_visibility 
+       bitfield.
+       * name-lookup.c: Include c-pragma.h.
+       (push_namespace_with_attribs): Split out from push_namespace.
+       Push visibility if appropriate.  Set TREE_PUBLIC on namespaces.
+       (leave_scope): Pop visibility if appropriate.
+       * decl2.c (determine_visibility_from_class): Split out from...
+       (determine_visibility): ...here.  Handle function scope and 
+       nested classes.
+       (import_export_decl): Move visibility handling to 
+       determine_visibility_from_class.
+       * parser.c (cp_parser_declaration, cp_parser_namespace_name): Allow
+       attributes on namespace declarations.
+
 2006-03-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/6634
-       decl.c (grokdeclarator): Do not accept long long double.
+       decl.c (grokdeclarator): Do not accept long long double.
        Reorganize checks for invalid (combinations of) type modifiers.
        Quote modifiers in messages.
 
        * pt.c (instantiate_class_template,
        resolve_typename_type): Likewise.
 
-2005-01-03  Volker Reichelt  <reichelt@igpm.rwth-aaachen.de>
+2005-01-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/14136
        * parser.c (cp_parser_unqualified_id): Do not issue error message