OSDN Git Service

gcc/cp/
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index ecf1bc6..6fcd92a 100644 (file)
@@ -1,3 +1,90 @@
+2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR c++/38638
+       * parser.c (cp_parser_elaborated_type_specifier): If we have a
+       typename tag and don't have either a TYPE_DECL or a
+       TEMPLATE_ID_EXPR, set the type to NULL.
+
+2009-03-27  Simon Martin  <simartin@users.sourceforge.net>
+
+       PR c++/37647
+       * decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
+       scope.
+
+2009-03-27  Simon Martin  <simartin@users.sourceforge.net>
+
+       PR c++/29727
+       * decl.c (check_array_designated_initializer): Handle error_mark_node.
+
+2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       PR c++/35652
+       * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum.
+
+2009-03-26  Andrew Haley  <aph@redhat.com>
+
+       PR C++/39380
+       * decl2.c (possibly_inlined_p): If java exceptions are in use
+       don't inline a decl unless it is explicitly marked inline.
+       * lex.c: (pragma_java_exceptions): New variable.
+       (handle_pragma_java_exceptions): Set pragma_java_exceptions.
+       * cp-tree.h (pragma_java_exceptions): Declare new variable.
+
+2009-03-24  Jason Merrill  <jason@redhat.com>
+
+       PR c++/28274
+       * name-lookup.c (pushdecl_maybe_friend): Check default args later.
+
+2009-03-23  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/39495
+       * semantics.c (handle_omp_for_class_iterator): Swap cond operands and
+       code if iter is the second operand.
+       * parser.c (cp_parser_binary_expression): Add no_toplevel_fold_p
+       argument.  If it is set, don't build the toplevel expression with
+       build_x_binary_op, but build2.
+       (cp_parser_assignment_expression,  cp_parser_omp_for_incr): Adjust
+       callers.
+       (cp_parser_omp_for_cond): Don't assume the first operand of the
+       comparison must be decl.
+
+2009-03-23  Jason Merrill  <jason@redhat.com>
+
+       PR c++/37729
+       * pt.c (make_fnparm_pack): Split out from...
+       (instantiate_decl): ...here.
+       (tsubst_pack_expansion): Handle being called in a late-specified
+       return type.
+
+       PR c++/39526
+       * name-lookup.c (pushdecl_maybe_friend): Don't warn about shadowing
+       a parm with a parm.
+
+2009-03-20  Jason Merrill  <jason@redhat.com>
+
+       PR c++/28879
+       * parser.c (cp_parser_direct_declarator): In a template, wrap 
+       non-constant expression in NOP_EXPR with TREE_SIDE_EFFECTS set.
+       * pt.c (tsubst): Preserve it in a partial instantiation.
+       (dependent_type_p_r): Don't check value_dependent_expression_p.
+       * decl.c (compute_array_index_type): Don't check
+       value_dependent_expression_p if TREE_SIDE_EFFECTS.
+
+       C++ core issue 703
+       * typeck2.c (check_narrowing): Don't complain about loss of 
+       precision when converting a floating-point constant.
+
+2009-03-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/39495
+       * parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL.
+       (cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond.
+
+2009-03-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * parser.c (struct cp_token): Reorder fields for 64-bit hosts.
+       (eof_token): Adjust.
+
 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR c++/39425