- 12 Nov, 2009 2 commits
-
-
* decl2.c (constrain_visibility): Clear WEAK and COMMON flags. * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON imply PUBLIC || EXTERNAL. From-SVN: r154115
Jan Hubicka committed -
PR c++/39131 * rtti.c (emit_support_tinfos): Add DFP types. * config/abi/pre/gnu.ver: Add DFP types. * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.4. From-SVN: r154113
Jason Merrill committed
-
- 11 Nov, 2009 1 commit
-
-
call.c (build_op_delete_call): Downgrade error about placement/non-placement confusion to permerror. * call.c (build_op_delete_call): Downgrade error about placement/non-placement confusion to permerror. From-SVN: r154106
Jason Merrill committed
-
- 10 Nov, 2009 2 commits
-
-
From-SVN: r154073
Jason Merrill committed -
PR c++/34158 PR c++/36406 * call.c (non_placement_deallocation_fn_p): Split out... (build_op_delete_call): ...from here. Use instantiate_type for placement delete. Simplify logic. * pt.c (primary_template_instantiation_p): Non-static. * cp-tree.h: Declare it. From-SVN: r154072
Jason Merrill committed
-
- 09 Nov, 2009 2 commits
-
-
PR c++/41972 * parser.c (cp_parser_template_argument): Accept SCOPE_REF around VAR_DECL. From-SVN: r154042
Jason Merrill committed -
PR c++/41994 * pt.c (tsubst_baselink): tsubst the name. From-SVN: r154041
Jason Merrill committed
-
- 08 Nov, 2009 3 commits
-
-
From-SVN: r154021
Jason Merrill committed -
PR c++/37290 * pt.c (tsubst) [TYPEOF_TYPE]: Set cp_unevaluated_operand. From-SVN: r154018
Jason Merrill committed -
PR c++/18451 PR c++/40738 * cp-tree.h (cp_decl_specifier_seq): Add any_type_specifiers_p. * parser.c (cp_parser_single_declaration): Call cp_parser_parse_and_diagnose_invalid_type_name here, too. (cp_parser_parameter_declaration): And here. (cp_parser_parse_and_diagnose_invalid_type_name): Be less picky about declarator form. Don't skip to the end of the block if we're in a declarator. (cp_parser_decl_specifier_seq): Set any_type_specifiers_p. (cp_parser_simple_declaration): Check it. (cp_parser_member_declaration): Likewise. (cp_parser_diagnose_invalid_type_name): Tweak error message. (cp_parser_expression_statement): Likewise. * decl2.c (grokfield): Mention decltype instead of typeof. From-SVN: r154006
Jason Merrill committed
-
- 06 Nov, 2009 9 commits
-
-
From-SVN: r153979
Jason Merrill committed -
PR c++/15946 * parser.c (cp_parser_check_template_parameters): Don't talk about specialization at function scope. (cp_parser_diagnose_invalid_type_name): Handle dependent scope. (cp_parser_parse_and_diagnose_invalid_type_name): Likewise. (cp_parser_expression_statement): Suggest typename. * error.c (dump_decl) [SCOPE_REF]: Print the type here. (dump_expr) [SCOPE_REF]: Call it. (dump_type) [UNBOUND_CLASS_TEMPLATE]: Check TFF_UNQUALIFIED_NAME. * cxx-pretty-print.c (pp_cxx_unqualified_id): Print class template args. From-SVN: r153978
Jason Merrill committed -
PR c++/9381 * decl2.c (build_memfn_type): Preserve attributes. (cp_reconstruct_complex_type): Likewise. (maybe_retrofit_in_chrg): Likewise. * call.c (standard_conversion): Use build_memfn_type. * pt.c (tsubst): Likewise. * decl.c (build_ptrmem_type): Likewise (check_function_type): Preserve attributes. * tree.c (cp_build_type_attribute_variant): Propagate exception specs on METHOD_TYPE, too. (strip_typedefs): Preserve exception specs and attributes. From-SVN: r153977
Jason Merrill committed -
2009-11-06 Andrew Pinski <andrew_pinski@playstation.sony.com> PR c++/41536 * optimize.c (maybe_clone_body): Copy DECL_ATTRIBUTES and DECL_DISREGARD_INLINE_LIMITS also. 2009-11-06 Andrew Pinski <andrew_pinski@playstation.sony.com> PR c++/41536 * g++.dg/ext/always_inline-5.C: New test. From-SVN: r153974
Andrew Pinski committed -
PR c++/41967 * parser.c (cp_parser_omp_for_loop): After diagnosing not perfectly nested loop and parsing statements, don't cp_parser_require }, instead exit the loop if next token is CPP_EOF. * g++.dg/gomp/pr41967.C: New test. From-SVN: r153972
Jakub Jelinek committed -
PR c++/34180 * method.c (do_build_copy_constructor): Don't drop cv-quals from the field type. From-SVN: r153960
Jason Merrill committed -
re PR c++/7046 (#pragma pack(1) context evaluated at point of instantiation rather than declaration) PR c++/7046 * class.c (finish_struct): Store maximum_field_alignment in TYPE_PRECISION. * pt.c (instantiate_class_template): Set maximum_field_alignment. From-SVN: r153959
Jason Merrill committed -
PR c++/34870 * name-lookup.c (arg_assoc_class): Call complete_type. * pt.c (instantiate_class_template): Call uses_template_parms instead of dependent_type_p. From-SVN: r153958
Jason Merrill committed -
re PR c++/41703 (Problems with SFINAE. Source works at gcc 3.4.6 but fails at 4.2.1 and 4.5.0.20091008) PR c++/41703 * pt.c (check_undeduced_parms): New subroutine of... (more_specialized_fn): ...here. Undeduced template parms can make a template less specialized than another. From-SVN: r153957
Jason Merrill committed
-
- 04 Nov, 2009 5 commits
-
-
From-SVN: r153922
Jason Merrill committed -
PR c++/39413 * search.c (lookup_base): Don't complete_type (base). From-SVN: r153920
Jason Merrill committed -
From-SVN: r153910
Jason Merrill committed -
PR c++/15882 * method.c (use_thunk): Check DECL_WEAK as well as DECL_ONE_ONLY. From-SVN: r153909
Jason Merrill committed -
PR c++/17365, DR 218 * name-lookup.c (add_function): Ignore non-functions. From-SVN: r153905
Jason Merrill committed
-
- 03 Nov, 2009 6 commits
-
-
PR c++/36959 * decl2.c (cxx_callgraph_analyze_expr): Don't reference a function just because a static variable in it is needed unless -frepo. From-SVN: r153878
Jason Merrill committed -
PR c++/41876 * parser.c (cp_parser_type_specifier_seq): Rename is_condition to is_declaration. (cp_parser_exception_declaration): Pass true. (cp_parser_omp_for_loop): Likewise. From-SVN: r153864
Jason Merrill committed -
PR c++/41927 * typeck.c (build_x_binary_op): Don't do warn_parentheses if we're in a SFINAE context. From-SVN: r153863
Jason Merrill committed -
PR c++/41815 * call.c (build_call_a): Strip cv-quals from rvalue result. From-SVN: r153862
Jason Merrill committed -
PR c++/40944 * call.c (initialize_reference): Add complain parm. * typeck.c (convert_for_initialization): Pass it. * decl.c (grok_reference_init): Likewise. * cp-tree.h: Declare it. From-SVN: r153856
Jason Merrill committed -
PR c++/40687 * pt.c (do_auto_deduction): Diagnose inconsistent deduction. From-SVN: r153855
Jason Merrill committed
-
- 02 Nov, 2009 3 commits
-
-
Fix PR c++/37093 gcc/cp/ChangeLog: PR c++/37093 * pt.c (check_valid_ptrmem_cst_expr): New function. (convert_nontype_argument): Use it to output an error for illegal pointer to member expressions used as template arguments. gcc/testsuite/ChangeLog: PR c++/37093 * g++.dg/other/ptrmem10.C: New test. * g++.dg/other/ptrmem11.C: Likewise. From-SVN: r153822
Dodji Seketeli committed -
* decl2.c (mark_used): Check cxx_dialect. * decl.c (grokfndecl): Do check type linkage in C++98 mode. (grokvardecl): Likewise. * pt.c (check_instantiated_arg): Likewise. From-SVN: r153816
Jason Merrill committed -
re PR c++/41774 (ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757) PR c++/41774 * c-pragma.c (visstack): Change into vector of ints rather than enum symbol_visibility. (push_visibility): Add kind argument, push default_visibility together with kind. (pop_visibility): Add kind argument, return true if successful, fail if visibility stack is empty or if stack top is of different kind. (handle_pragma_visibility): Don't check length of visstack, instead call pop_visibility and issue diagnostics if it failed. Pass 0 as last argument to push_visibility and pop_visibility. * c-pragma.h (push_visibility): Add kind argument. (pop_visibility): Likewise. Return bool instead of void. * name-lookup.c (handle_namespace_attrs): Pass 1 as last argument to push_visibility. * parser.c (cp_parser_namespace_definition): Pass 1 as argument to pop_visibility. * rtti.c (push_abi_namespace): Pass 2 as last argument to push_visibility. (pop_abi_namespace): Pass 2 as argument to pop_visibility. * g++.dg/ext/visibility/namespace3.C: New test. From-SVN: r153805
Jakub Jelinek committed
-
- 01 Nov, 2009 3 commits
-
-
* tree.c (cv_unqualified): New fn. * cp-tree.h: Declare it. * typeck.c (decay_conversion): Use it instead of TYPE_MAIN_VARIANT. From-SVN: r153790
Jason Merrill committed -
From-SVN: r153789
Jason Merrill committed -
PR c++/41754 * call.c (compare_ics): Avoid bad union use when comparing two ck_lists. From-SVN: r153788
Jason Merrill committed
-
- 30 Oct, 2009 4 commits
-
-
/gcc/cp 2009-10-30 Jerry Quinn <jlquinn@optonline.net> * mangle.c (mangle_type_string_for_rtti): Reapply 153734. (needs_fake_anon): Likewise. (write_name): Likewise. (write_nested_name): Likewise. * cp-tree.h (mangle_type_string_for_rtti): Likewise. (get_anonymous_namespace): Likewise. * name-lookup.c (get_anonymous_namespace_name): Likewise. * rtti.c (tinfo_name): Likewise, with +1 in the second build_string call fixed. (tinfo_base_init): Likewise. libstdc++/ 2009-10-30 Jerry Quinn <jlquinn@optonline.net> * libsupc++/tinfo.cc (operator=(const type_info&)): Reapply 153734. * libsupc++/typeinfo (type_info::name()): Likewise. * libsupc++/tinfo2.cc (before): Likewise. From-SVN: r153768
Jerry Quinn committed -
Revert: * decl.c (cp_fname_init): Correct build_string argument. From-SVN: r153765
Jason Merrill committed -
2009-10-30 Jerry Quinn <jlquinn@optonline.net> * libsupc++/tinfo.cc (operator=(const type_info&)): Revert 153734. * libsupc++/typeinfo (type_info::name()): Likewise. * libsupc++/tinfo2.cc (before): Likewise. 2009-10-30 Jerry Quinn <jlquinn@optonline.net> * mangle.c (mangle_type_string_for_rtti): Revert 153734. (needs_fake_anon): Likewise. (write_name): Likewise. (write_nested_name): Likewise. * cp-tree.h (mangle_type_string_for_rtti): Likewise. (get_anonymous_namespace): Likewise. * name-lookup.c (get_anonymous_namespace_name): Likewise. * rtti.c (tinfo_name): Likewise. (tinfo_base_init): Likewise. From-SVN: r153742
Jerry Quinn committed -
Fix PR c++/41863 gcc/cp/ChangeLog: PR c++/41863 * pt.c (iterative_hash_template_arg): articifial parms don't have DECL_PARM_INDEX set. Do not hash it. gcc/testsuite/ChangeLog: PR c++/41863 * g++.dg/template/sizeof12.C: New test. From-SVN: r153735
Dodji Seketeli committed
-