- 16 Jul, 2014 1 commit
-
-
* Minor ChangeLog adjustments. From-SVN: r212584
Paolo Carlini committed
-
- 15 Jul, 2014 4 commits
-
-
PR c++/61811 * decl2.c (maybe_emit_vtables): Return true for -fuse-all-virtuals. From-SVN: r212576
Jason Merrill committed -
PR c++/60848 PR c++/61723 * call.c (is_std_init_list): Don't check CLASSTYPE_TEMPLATE_INFO. * class.c (finish_struct): Reject invalid definition of std::initializer_list. From-SVN: r212574
Jason Merrill committed -
2014-07-15 Paolo Carlini <paolo.carlini@oracle.com> * call.c (convert_like_real): Call print_z_candidate and inform only if permerror returns true. From-SVN: r212560
Paolo Carlini committed -
tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL, NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL... * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL, NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL; call langhook for unknown declaration. (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD. * tree.h (DECL_ARGUMENTS): Update. * print-tree.c (print_node): Update. * tree-core.h (tree_decl_non_common): Remove arguments. (tree_function_decl): Add arguments. * class.c (build_clone): Do not clear assembler names of templates. * decl.c (cp_tree_node_structure): Add TEMPLATE_DECL. * cp-objcp-common.c (cp_tree_size): Add TEMPLATE_DECL as a special case return sizeof (struct tree_decl_non_common) for other decls. (cp_common_init_ts): Do not initialize NAMESPACE_DECL; initialize TEMPLATE_DECL as MARK_TS_DECL_COMMON. * cp/cp-tree.h (tree_template_decl): New structure. (cp_tree_node_structure_enum): Add TS_CP_TEMPLATE_DECL. (union cp_lang_tree_node): Add template_decl. (DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT): Update. * lto/lto.c (mentions_vars_p_decl_non_common): Skip DECL_ARGUMENT_FLD. mentions_vars_p_function): Do DECL_ARGUMENTS. (lto_fixup_prevailing_decls): Update. * objc-act.c (objc_common_tree_size): New function. * objc-act.h (KEYWORD_KEY_NAME, KEYWORD_ARG_NAME): Add type checking. (INSTANCE_METHOD_OR_CLASS_METHOD_DECL_CHECK): New macro. (METHOD_SEL_NAME, METHOD_SEL_ARGS, METHOD_ADD_ARGS, METHOD_ADD_ARGS_ELLIPSIS_P, METHOD_DEFINITION, METHOD_ENCODING, METHOD_TYPE_ATTRIBUTES, METHOD_PROPERTY_CONTEXT): Add type checking. (METHOD_SEL_ARGS): Use decl_common.size instead of decl_non_common.result. (PROPERTY_NAME, PROPERTY_GETTER_NAME, PROPERTY_SETTER_NAME, PROPERTY_READONLY, PROPERTY_NONATOMIC, PROPERTY_ASSIGN_SEMANTICS, PROPERTY_IVAR_NAME, PROPERTY_DYNAMIC, PROPERTY_HAS_NO_GETTER, PROPERTY_HAS_NO_SETTER, PROPERTY_OPTIONAL): Add type checking. (objc_common_tree_size): Declare. * objc/objc-lang.c (LANG_HOOKS_TREE_SIZE): New macro. From-SVN: r212549
Jan Hubicka committed
-
- 14 Jul, 2014 7 commits
-
-
PR c++/61445 PR c++/56947 * pt.c (instantiate_decl): Don't check defer_ok for local class members. From-SVN: r212524
Jason Merrill committed -
PR middle-end/61294 gcc/c-family/ * c.opt (Wmemset-transposed-args): New warning. gcc/c/ * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. If non-NULL, call c_parser_check_literal_zero. (c_parser_check_literal_zero): New function. (c_parser_postfix_expression_after_primary): Adjust c_parser_expr_list caller, handle -Wmemset-transposed-args. gcc/cp/ * cp-tree.h (LITERAL_ZERO_P): Define. * parser.c (cp_parser_parenthesized_expression_list): Add want_literal_zero_p argument, if true, for literal zeros insert INTEGER_CSTs with LITERAL_ZERO_P flag set. (cp_parser_postfix_expression): Adjust cp_parser_parenthesized_expression_list caller, handle -Wmemset-transposed-args. (literal_zeros): New variable. gcc/ * doc/invoke.texi (-Wmemset-transposed-args): Document. gcc/testsuite/ * c-c++-common/Wmemset-transposed-args1.c: New test. * c-c++-common/Wmemset-transposed-args2.c: New test. * g++.dg/warn/Wmemset-transposed-args-1.C: New test. From-SVN: r212510
Jakub Jelinek committed -
PR c++/58511 * semantics.c (is_instantiation_of_constexpr): Return true for defaulted functions, too. (explain_invalid_constexpr_fn): Only use explain_implicit_non_constexpr if !DECL_DECLARED_CONSTEXPR_P. * method.c (explain_implicit_non_constexpr): Pass DECL_INHERITED_CTOR_BASE to explain_implicit_non_constexpr. From-SVN: r212507
Jason Merrill committed -
PR c++/58611 * decl.c (check_initializer): Don't finish_compound_literal on erroneous constexpr init. From-SVN: r212506
Jason Merrill committed -
PR c++/58612 * tree.c (bot_replace): Only replace a dummy 'this' parm. From-SVN: r212505
Jason Merrill committed -
PR c++/60628 * decl.c (create_array_type_for_decl): Only check for auto once. From-SVN: r212504
Jason Merrill committed -
PR c++/58636 * call.c (build_list_conv): Don't try to build a list of references. From-SVN: r212503
Jason Merrill committed
-
- 13 Jul, 2014 1 commit
-
-
cp/ 2014-07-13 Edward Smith-Rowland <3dw4rd@verizon.net> PR C++/60209 - Declaration of user-defined literal operator cause error * cp/parser.c (cp_parser_operator()): Fold treatment of strings and user-defined string literals. Use the full string parser. (cp_parser_string_literal()): Add flag to not look for literal operator. testsuite/ 2014-07-13 Edward Smith-Rowland <3dw4rd@verizon.net> PR C++/60209 - Declaration of user-defined literal operator cause error * g++.dg/cpp0x/pr60209-neg.C: New. * g++.dg/cpp0x/pr60209.C: New. * g++.dg/cpp1y/udlit-empty-string-neg.C: Adjust messages. From-SVN: r212494
Edward Smith-Rowland committed
-
- 12 Jul, 2014 1 commit
-
-
PR c++/22434 PR c++/61288 * call.c (build_conditional_expr_1): Avoid reading freed memory. From-SVN: r212482
Jason Merrill committed
-
- 11 Jul, 2014 2 commits
-
-
* Minor ChangeLog adjustments. From-SVN: r212470
Paolo Carlini committed -
/cp 2014-07-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53159 * call.c (build_user_type_conversion_1): Copy LOOKUP_NO_NARROWING into convflags. * decl.c (check_initializer): Don't call check_narrowing here, set LOOKUP_NO_NARROWING. * typeck2.c (digest_init_r): Likewise. /testsuite 2014-07-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53159 * g++.dg/cpp0x/Wnarrowing1.C: New. From-SVN: r212469
Paolo Carlini committed
-
- 10 Jul, 2014 2 commits
-
-
PR c++/61661 * semantics.c (reduced_constant_expression_p): Handle CONSTRUCTOR. From-SVN: r212439
Jason Merrill committed -
PR c++/61659 PR c++/61687 gcc/c-family/ * c.opt (-fuse-all-virtuals): New. gcc/cp/ * decl2.c (mark_all_virtuals): New variable. (maybe_emit_vtables): Check it instead of flag_devirtualize. (cp_write_global_declarations): Set it and give helpful diagnostic if it introduces errors. * class.c (finish_struct_1): Check it. * decl.c (grokdeclarator): Clear virtualp after 'virtual auto' error. From-SVN: r212436
Jason Merrill committed
-
- 09 Jul, 2014 3 commits
-
-
re PR c++/60686 (message " only declarations of constructors can be ‘explicit’ " now conflicting with C++11) /cp 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60686 * decl.c (grokdeclarator): Adjust error messages about 'explicit' outside class declaration, in friend declaration, and neither on constructor nor conversion operator. /testsuite 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60686 * g++.dg/cpp0x/explicit8.C: New. From-SVN: r212415
Paolo Carlini committed -
/cp 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> DR 1584 PR c++/57466 * pt.c (check_cv_quals_for_unify): Implement resolution, disregard cv-qualifiers of function types. /testsuite 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> DR 1584 PR c++/57466 * g++.dg/template/pr57466.C: New. * g++.dg/cpp0x/pr57466.C: Likewise. * g++.dg/template/unify6.C: Update. From-SVN: r212410
Paolo Carlini committed -
/cp 2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com> Paolo Carlini <paolo.carlini@oracle.com> PR c++/59361 * parser.c (cp_parser_tokens_start_cast_expression): Return 0 for CPP_ELLIPSIS too. /testsuite 2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com> Paolo Carlini <paolo.carlini@oracle.com> PR c++/59361 * g++.dg/cpp0x/vt-59361.C: New. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r212386
Andrew Sutton committed
-
- 07 Jul, 2014 1 commit
-
-
/cp 2014-07-07 Paolo Carlini <paolo.carlini@oracle.com> * class.c (check_for_override): Wrap the 'final' and 'override' keywords in %< and %>. /testsuite 2014-07-07 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/cpp0x/override1.C: Tweak expected error messages. From-SVN: r212333
Paolo Carlini committed
-
- 06 Jul, 2014 1 commit
-
-
PR c/6940 * doc/invoke.texi: Document -Wsizeof-array-argument. c-family/ * c.opt (Wsizeof-array-argument): New option. c/ * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. * c-tree.h (C_ARRAY_PARAMETER): Define. * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array function parameter. cp/ * cp-tree.h (DECL_ARRAY_PARAMETER_P): Define. * decl.c (grokdeclarator): Set DECL_ARRAY_PARAMETER_P. * typeck.c (cxx_sizeof_expr): Warn when using sizeof on an array function parameter. testsuite/ * c-c++-common/Wsizeof-pointer-memaccess1.c: Use -Wno-sizeof-array-argument. * c-c++-common/Wsizeof-pointer-memaccess2.c: Likewise. * g++.dg/warn/Wsizeof-pointer-memaccess-1.C: Likewise. * gcc.dg/Wsizeof-pointer-memaccess1.c: Likewise. * g++.dg/torture/Wsizeof-pointer-memaccess1.C: Likewise. * g++.dg/torture/Wsizeof-pointer-memaccess2.C: Likewise. * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Likewise. * c-c++-common/sizeof-array-argument.c: New test. * gcc.dg/vla-5.c: Add dg-warnings. ../libgomp/ * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings. From-SVN: r212312
Marek Polacek committed
-
- 02 Jul, 2014 1 commit
-
-
/cp 2014-07-02 Paolo Carlini <paolo.carlini@oracle.com> * pt.c (convert_template_argument): Use inform instead of error in three places. /testsuite 2014-07-02 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/cpp0x/variadic-ex10.C: Adjust for inform instead of error. * g++.dg/cpp0x/variadic-ex14.C: Likewise. * g++.dg/parse/error11.C: Likewise. * g++.old-deja/g++.brendan/template17.C: Likewise. From-SVN: r212223
Paolo Carlini committed
-
- 01 Jul, 2014 2 commits
-
-
From-SVN: r212198
Teresa Johnson committed -
cp/ 2014-06-28 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58781 PR c++/60249 PR c++/59867 * parser.c (cp_parser_userdef_string_literal()): Take a tree not a cp_token*. (cp_parser_string_literal(): Don't hack the token stream! testsuite/ 2014-06-28 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58781 PR c++/60249 PR c++/59867 * testsuite/g++.dg/cpp0x/pr58781.C: New. * testsuite/g++.dg/cpp0x/pr60249.C: New. * testsuite/g++.dg/cpp1y/pr59867.C: New. From-SVN: r212186
Edward Smith-Rowland committed
-
- 30 Jun, 2014 9 commits
-
-
PR c++/61659 PR lto/53808 gcc/cp * decl2.c (maybe_emit_vtables): Mark all vtable entries if devirtualizing. * init.c (build_vtbl_address): Don't mark destructor. * class.c (finish_struct_1): Add all classes to keyed_classes if devirtualizing. libstdc++-v3/ * libsupc++/cxxabi.h (class __pbase_type_info): __pointer_catch is pure, not inline. From-SVN: r212174
Jason Merrill committed -
re PR c++/61647 (internal compiler error: in push_access_scope, at cp/pt.c:219 for a c++ header, clang++ 3.4 generate .pch without error) PR c++/61647 * pt.c (type_dependent_expression_p): Check BASELINK_OPTYPE. From-SVN: r212168
Jason Merrill committed -
PR c++/61566 * mangle.c (decl_mangling_context): Look through a TEMPLATE_DECL. From-SVN: r212165
Jason Merrill committed -
* decl.c (build_ptrmemfunc_type): Don't give a PMF RECORD_TYPE TYPE_BINFO or TYPE_LANG_SPECIFIC. * cp-tree.h (TYPE_PTRMEMFUNC_FLAG): Use TYPE_LANG_FLAG_2. (TYPE_PTRMEMFUNC_P): Don't expect TYPE_LANG_SPECIFIC. * typeck.c (build_ptrmemfunc_access_expr): Don't use lookup_member. * pt.c (unify): Also check whether the argument is a PMF. From-SVN: r212164
Jason Merrill committed -
/cp 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54891 * parser.c (cp_parser_tokens_start_cast_expression): In C++11 a '[' can also start a primary-expression. (cp_parser_cast_expression): Parse a cast-expression only tentatively when cp_parser_tokens_start_cast_expression returns -1. /testsuite 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54891 * g++.dg/cpp0x/lambda/lambda-cast1.C: New. From-SVN: r212162
Paolo Carlini committed -
PR c++/61539 * pt.c (unify_one_argument): Type/expression mismatch just causes deduction failure. From-SVN: r212154
Jason Merrill committed -
* semantics.c (simplify_aggr_init_expr): Remove remnants of 2014-04-11 change. From-SVN: r212153
Jason Merrill committed -
convert.c (convert_to_integer): Don't instrument conversions if the function has no_sanitize_undefined attribute. * convert.c (convert_to_integer): Don't instrument conversions if the function has no_sanitize_undefined attribute. * ubsan.c: Don't run the ubsan pass if the function has no_sanitize_undefined attribute. c/ * c-decl.c (grokdeclarator): Don't instrument VLAs if the function has no_sanitize_undefined attribute. cp/ * cp-gimplify.c (cp_genericize): Don't instrument returns if the function has no_sanitize_undefined attribute. * decl.c (compute_array_index_type): Don't instrument VLAs if the function has no_sanitize_undefined attribute. testsuite/ * c-c++-common/ubsan/attrib-2.c: New test. * g++.dg/ubsan/return-3.C: New test. From-SVN: r212148
Marek Polacek committed -
PR middle-end/57541 gcc/c/ * c-array-notation.c (fix_builtin_array_notation_fn): Check for 0 arguments in builtin call. Check that bultin argument is correct. * c-parser.c (c_parser_array_notation): Check for incorrect initial index. gcc/cpp/ * cp-array-notation.c (expand_sec_reduce_builtin): Check that bultin argument is correct. * call.c (build_cxx_call): Check for 0 arguments in builtin call. gcc/testsuite/ * c-c++-common/cilk-plus/AN/pr57541.c: New case added. * c-c++-common/cilk-plus/AN/pr57541-2.c: New test. From-SVN: r212138
Igor Zamyatin committed
-
- 28 Jun, 2014 1 commit
-
-
gcc/cp: DR 1579 PR c++/58051 * typeck.c (check_return_expr): Lookup as an rvalue even when the types aren't the same. gcc/testsuite: * g++.dg/cpp0x/elision_conv.C: New. From-SVN: r212099
Jonathan Wakely committed
-
- 27 Jun, 2014 3 commits
-
-
re PR c++/61433 (ICE: SIGSEGV in friend_accessible_p (search.c:778) with -std=gnu++11 -O -fcompare-debug -fno-inline -fno-ipa-pure-const -fipa-sra) PR c++/61433 * error.c (dump_template_bindings): Don't tsubst in a clone. From-SVN: r212091
Jason Merrill committed -
/cp 2014-06-27 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61614 * semantics.c (finish_compound_literal): Revert r204228. /testsuite 2014-06-27 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61614 * g++.dg/ext/complit14.C: New. From-SVN: r212073
Paolo Carlini committed -
2014-06-27 Paolo Carlini <paolo.carlini@oracle.com> * parser.c (cp_parser_compound_literal_p): New. (cp_parser_postfix_expression, cp_parser_sizeof_operand): Use it. From-SVN: r212064
Paolo Carlini committed
-
- 26 Jun, 2014 1 commit
-
-
* parser.c (cp_parser_for_init_statement): Change range-for error to pedwarn. From-SVN: r212044
Jason Merrill committed
-