OSDN Git Service

PR c++/45588
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 82c8299..f2c7faa 100644 (file)
@@ -1,3 +1,102 @@
+2010-09-08  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/45588
+       * pt.c (tsubst) <case INTEGER_TYPE>: Call mark_rvalue_use
+       before calling fold_decl_constant_value.
+
+2010-09-07  Arnaud Charlet  <charlet@adacore.com>
+
+       * cp-tree.h (build_enumerator): Add new location_t parameter.
+       (build_lang_decl_loc): New function.
+       * decl.c (build_enumerator): New parameter loc. Use it when calling
+       build_decl. Replace build_lang_decl with build_lang_decl_loc.
+       * pt.c (tsubst_enum): Adjust call to build_enumerator.
+       * parser.c (cp_parser_enumerator_definition): Ditto.
+       * lex.c (build_lang_decl_loc): New function.
+
+2010-09-06  Dodji Seketeli  <dodji@redhat.com>
+
+       PR c++/45200
+       PR c++/45293
+       PR c++/45558
+       * tree.c (strip_typedefs): Strip typedefs from the context of
+       TYPENAME_TYPEs.
+
+2010-09-06  Mark Mitchell  <mark@codesourcery.com>
+
+       * typeck.c (cp_build_binary_op): Call do_warn_double_promotion.
+       * call.c (build_conditional_expr): Likewise.
+       (convert_arg_to_ellipsis): Likewise.
+
+2010-09-06  Arnaud Charlet  <charlet@adacore.com>
+
+       * parser.c (make_pointer_declarator, make_reference_declarator,
+       make_call_declarator, make_array_declarator): Set declarator->id_loc.
+       (cp_parser_init_declarator): Adjust location of decl if appropriate.
+
+2010-09-06  Jason Merrill  <jason@redhat.com>
+
+       * call.c (implicit_conversion): Fix value-init of enums.
+       (convert_like_real): Likewise.
+
+       * decl.c (cp_finish_decl): Don't change init for auto deduction.
+
+       * pt.c (fold_non_dependent_expr_sfinae): Split out from...
+       (fold_non_dependent_expr): ...here.
+       (convert_nontype_argument): Use it.  Take complain parm.
+       Use perform_implicit_conversion instead of ocp_convert.
+       Allow cv-qual changes.
+       (convert_template_argument): Pass complain down.
+       (tsubst_template_arg): Suppress constant expression warnings.
+       Don't fold here.
+
+       * method.c (synthesized_method_walk): In constructors, also check
+       subobject destructors.
+
+       * semantics.c (finish_compound_literal): Always build a
+       TARGET_EXPR.
+
+2010-08-30  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/45043
+       * decl.c (grokdeclarator): Use MAIN_NAME_P only on IDENTIFIER_NODEs.
+
+2010-08-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/45423
+       * parser.c (cp_parser_omp_atomic): Handle boolean
+       {PRE,POST}_INCREMENT.
+
+2010-08-29  Jason Merrill  <jason@redhat.com>
+
+       PR c++/44991
+       * parser.c (cp_parser_parameter_declaration): Pop parameter decls
+       after tentative parsing.
+
+2010-08-22  Joseph Myers  <joseph@codesourcery.com>
+
+       * Make-lang.in (g++spec.o): Update dependencies.
+       * g++spec.c: Include opts.h
+       (MATH_LIBRARY, LIBSTDCXX): Remove initial "-l".
+       (lang_specific_driver): Use cl_decoded_option structures.
+
+2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * call.c: Use FOR_EACH_VEC_ELT.
+       * class.c: Likewise.
+       * decl.c: Likewise.
+       * decl2.c: Likewise.
+       * error.c: Likewise.
+       * except.c: Likewise.
+       * mangle.c: Likewise.
+       * method.c: Likewise.
+       * name-lookup.c: Likewise.
+       * parser.c: Likewise.
+       * pt.c: Likewise.
+       * repo.c: Likewise.
+       * semantics.c: Likewise.
+       * typeck2.c: Likewise.
+
 2010-08-19  Jason Merrill  <jason@redhat.com>
 
        * call.c (reference_related_p): Check for error_mark_node.