c.opt (Wc++11-compat): Make primary.
[platform/upstream/gcc.git] / gcc / cp / ChangeLog
index 3ee050c..e776b00 100644 (file)
@@ -1,3 +1,113 @@
+2015-05-08  Jason Merrill  <jason@redhat.com>
+
+       * cp-gimplify.c, parser.c: Adjust to -Wc++11-compat replacing
+       -Wc++0x-compat.
+
+2015-05-08  Jason Merrill  <jason@redhat.com>
+
+       * decl2.c (mangling_aliases): New variable.
+       (note_mangling_alias, generate_mangling_aliases): New.
+       (cp_write_global_declarations): Call generate_mangling_aliases.
+       (generate_mangling_alias): Split out from...
+       * mangle.c (mangle_decl): ...here.
+       * cp-tree.h: Declare note_mangling_alias.
+
+2015-05-08  Aldy Hernandez  <aldyh@redhat.com>
+
+       * decl2.c (collect_candidates_for_java_method_aliases): Remove.
+       (build_java_method_aliases): Adapt to use create_same_body_alias
+       instead of assemble_alias.  Move variable declarations to
+       definition and tidy up.
+       (cp_write_global_declarations): Call build_java_method_aliases
+       instead of collecting candidates first.
+
+2015-05-07  Jason Merrill  <jason@redhat.com>
+
+       PR c++/59012
+       * parser.c (cp_parser_std_attribute_list): Handle attribute expansion.
+       (cp_parser_std_attribute_spec): Handle alignas pack expansion.
+       * decl2.c (is_late_template_attribute): An attribute exp is dependent.
+       * pt.c (make_pack_expansion): Allow TREE_LIST for attribute expansion.
+       (apply_late_template_attributes): Handle attribute pack expansion.
+
+2015-05-07  Marek Polacek  <polacek@redhat.com>
+
+       PR c/65179
+       * typeck.c (cp_build_binary_op): Warn when left shifting a negative
+       value.
+
+2015-05-07  Jason Merrill  <jason@redhat.com>
+
+       DR 1467
+       PR c++/51747
+       * typeck2.c (digest_init_r): Fix single element list.
+
+2015-05-05  Jason Merrill  <jason@redhat.com>
+
+       * cp-gimplify.c (cp_genericize_r): Track TRY_BLOCK and
+       MUST_NOT_THROW_EXPR, warn about a THROW_EXPR directly within a
+       MUST_NOT_THROW_EXPR.
+       (cp_genericize_data): Add try_block field.
+       (cp_genericize_tree): Initialize it.
+       * except.c (expand_end_catch_block): Set TREE_NO_WARNING on
+       implicit rethrow.
+
+       * constexpr.c (potential_constant_expression_1) [AT_ENCODE_EXPR]:
+       Return false.
+
+       * semantics.c (finish_call_expr): Check complain.
+
+       * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a
+       maybe-in-charge constructor.
+
+       * decl.c (start_decl): Don't push the plain VAR_DECL for a
+       variable template.
+
+       DR 1518
+       DR 1630
+       PR c++/54835
+       PR c++/60417
+       * call.c (convert_like_real): Check value-initialization before
+       explicit.
+       * typeck2.c (process_init_constructor_record): Don't set
+       CONSTRUCTOR_IS_DIRECT_INIT.
+       (process_init_constructor_array): Likewise.
+       * init.c (build_vec_init): Likewise.
+
+2015-05-05  David Malcolm  <dmalcolm@redhat.com>
+
+       * parser.c (cp_parser_asm_definition): Only test for
+        error_mark_node if "outputs" was just set.  Likewise for "inputs".
+
+2015-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
+           Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/66007
+       * typeck2.c (check_narrowing): Check by-hand that the pedwarn didn't
+       result in an actual error.
+
+2015-05-01  Paolo Carlini  <paolo.carlini@oracle.com>
+           Prathamesh Kulharni  <prathamesh.kulkarni@linaro.org>
+
+       PR c++/65858
+       * typeck2.c (check_narrowing): Set ok = true when pedwarn returns
+       false.
+
+2015-04-30  David Malcolm  <dmalcolm@redhat.com>
+
+       * cp-tree.h (ARGUMENT_PACK_SELECT_ARG): Remove spurious
+       trailing semicolon.
+
+2015-04-29  Jason Merrill  <jason@redhat.com>
+
+       PR c++/50800
+       * tree.c (apply_identity_attributes): Fix handling of classes.
+
+2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * parser.c (cp_parser_oacc_enter_exit_data): Use
+       OMP_STANDALONE_CLAUSES.
+
 2015-04-29  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/64667