1. 16 Jul, 2014 1 commit
  2. 15 Jul, 2014 4 commits
    • re PR c++/61811 (Firefox LTO build error due to undefined symbols) · 1b60eaed
      	PR c++/61811
      	* decl2.c (maybe_emit_vtables): Return true for -fuse-all-virtuals.
      
      From-SVN: r212576
      Jason Merrill committed
    • re PR c++/60848 (Crash while experimenting with c++-0x initializer lists) · 0090caca
      	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
    • call.c (convert_like_real): Call print_z_candidate and inform only if permerror returns true. · 603a0084
      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,… · ad115a3c
      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
  3. 14 Jul, 2014 7 commits
  4. 13 Jul, 2014 1 commit
    • PR C++/60209 - Declaration of user-defined literal operator cause error · c6abdc36
      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
  5. 12 Jul, 2014 1 commit
  6. 11 Jul, 2014 2 commits
  7. 10 Jul, 2014 2 commits
  8. 09 Jul, 2014 3 commits
    • re PR c++/60686 (message " only declarations of constructors can be ‘explicit’ "… · 2ec99953
      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
    • DR 1584 PR c++/57466 · 84b64170
      /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
    • re PR c++/59361 (cannot expand parenthesized pack expression) · f47910b5
      /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
  9. 07 Jul, 2014 1 commit
  10. 06 Jul, 2014 1 commit
    • re PR c/6940 (taking sizeof array parameter should trigger a warning) · 773ec47f
      	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
  11. 02 Jul, 2014 1 commit
  12. 01 Jul, 2014 2 commits
  13. 30 Jun, 2014 9 commits
  14. 28 Jun, 2014 1 commit
  15. 27 Jun, 2014 3 commits
  16. 26 Jun, 2014 1 commit