re PR c++/65398 ([C++11] GCC rejects constexpr variable definitions with valid initia...
[gcc.git] / gcc / cp / ChangeLog
index 3f948fd18e10d5ca0f3b00390521d786410cabae..ec35f22fe0444e670129196364c138acadc76b07 100644 (file)
@@ -1,5 +1,61 @@
+2015-03-30  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/65398
+       * constexpr.c (cxx_fold_indirect_ref): Don't perform the
+        *(&A[i] p+ j) => A[i + j] transformation here.
+       (cxx_eval_pointer_plus_expression): New function.
+       (cxx_eval_constant_expression): Use it here.
+
+2015-03-27  Tobias Burnus  <burnus@net-b.de>
+
+       PR c/65586
+       * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
+       cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
+       cp_parser_omp_declare): Don't show error for skipped omp pragmas with
+       -fopenmp-simd.
+
+2015-03-27  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/65556
+       * semantics.c (finish_switch_cond): If the unlowered type is not an
+       enum, use the type of the condition.
+
+2015-03-27  Jason Merrill  <jason@redhat.com>
+
+       PR c++/65509
+       * decl.c (make_rtl_for_nonlocal_decl): Don't defer static
+       constants.
+
+2015-03-26  Mikhail Maltsev  <maltsevm@gmail.com>
+
+       PR c++/65154
+       * init.c (build_vec_init): Fix initializing aggregates
+       with empty init list.
+
+2015-03-26  Jason Merrill  <jason@redhat.com>
+
+       PR c++/65525
+       * constexpr.c (potential_constant_expression_1): Handle MEM_REF.
+
+2015-03-25  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/65558
+       * name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
+       on an anonymous namespace.
+
+2015-03-25  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/61670
+       * class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.
+
 2015-03-24  Jason Merrill  <jason@redhat.com>
 
+       PR c++/65046
+       * cp-tree.h (NAMESPACE_IS_INLINE): Remove.
+       * parser.c (cp_parser_namespace_definition): Don't set it.
+       * name-lookup.c (handle_namespace_attrs): Check
+       DECL_NAMESPACE_ASSOCIATIONS instead.
+
        PR c++/65498
        * pt.c (get_mostly_instantiated_function_type): Just return the
        type of the partially instantiated template in DECL_TI_TEMPLATE.