- 22 Feb, 2010 2 commits
-
-
2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/43126 * c-typeck.c (convert_arguments): Print declaration location. * c-common.c (validate_nargs): Rename as builtin_function_validate_nargs. (check_builtin_function_arguments): Update. cp/ * typeck.c (convert_arguments): Update error message. testsuite/ * gcc.dg/cleanup-1.c: Update. * gcc.dg/func-args-1.c: Update. * gcc.dg/format/sentinel-1.c: Update. * g++.old-deja/g++.jason/scoping10.C: Update. * g++.old-deja/g++.ns/lookup5.C: Update. * g++.dg/ext/cleanup-1.C: Update. * g++.dg/parse/varmod1.C: Update. * g++.dg/parse/error33.C: Update. * g++.dg/expr/call3.C: Update. * g++.dg/func-args-1.C: New. From-SVN: r156979
Manuel López-Ibáñez committed -
2010-02-22 Mike Stump <mikestump@comcast.net> PR c++/43125 * decl.c (duplicate_decls): Merge DECL_PRESERVE_P. From-SVN: r156977
Mike Stump committed
-
- 21 Feb, 2010 2 commits
-
-
2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/23510 cp/ * error.c (print_instantiation_partial_context_line): New. (print_instantiation_partial_context): Print at most 12 contexts, skip the rest with a message. testsuite/ * g++.dg/template/recurse.C: Adjust. * g++.dg/template/pr23510.C: New. From-SVN: r156942
Manuel López-Ibáñez committed -
Fix PR c++/42824 gcc/cp/ChangeLog: PR c++/42824 * pt.c (lookup_template_class): Better support of specialization of member of class template implicit instantiation. gcc/testsuite/ChangeLog: PR c++/42824 * g++.dg/template/memclass4.C: New test. From-SVN: r156939
Dodji Seketeli committed
-
- 20 Feb, 2010 1 commit
-
-
2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/35669 * c.opt (Wconversion-null): New option. * doc/invoke.texi (Wconversion-null): Document. cp/ * call.c (conversion_null_warnings): Replace -Wconversion with -Wconversion-null. * cvt.c (build_expr_type_conversion): Likewise. testsuite/ * g++.dg/warn/Wconversion2.C: Replace -Wconversion with -Wconversion-null. * g++.dg/warn/Wconversion-null.C: New test. * g++.old-deja/g++.other/null1.C: Move to... * g++.dg/warn/Wconversion-null-2.C: ... here. Remove -Wconversion. libstdc++-v3/ * testsuite/18_support/headers/cstddef/macros.cc: Add -Wno-conversion-null. From-SVN: r156928
Manuel López-Ibáñez committed
-
- 19 Feb, 2010 1 commit
-
-
PR c++/42837 * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed. From-SVN: r156885
Jason Merrill committed
-
- 18 Feb, 2010 4 commits
-
-
PR c++/43108 * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from C build_binary_op. * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR. * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE. From-SVN: r156874
Jason Merrill committed -
PR c++/43070 * semantics.c (finish_goto_stmt): Don't call decay_conversion. From-SVN: r156872
Jason Merrill committed -
PR c++/26261 PR c++/43101 * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope. (maybe_update_decl_type): New fn. * parser.c (cp_parser_init_declarator): Use it. From-SVN: r156865
Jason Merrill committed -
PR c++/43109 * semantics.c (begin_class_definition): Don't crash on unnamed ns. From-SVN: r156864
Jason Merrill committed
-
- 17 Feb, 2010 4 commits
-
-
PR c++/43075 * call.c (build_over_call): Don't create zero-sized assignments. * cp-gimplify.c (cp_genericize_r): Don't remove them here. * cp-objcp-common.c (cp_expr_size): Remove. * cp-tree.h: Remove prototype. From-SVN: r156842
Jason Merrill committed -
re PR c++/43069 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in set_decl_namespace, at cp/name-lookup.c:3105) PR c++/43069 * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the decl we looked up doesn't match. From-SVN: r156841
Jason Merrill committed -
PR c++/43093 * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't have an INIT_EXPR anymore. From-SVN: r156840
Jason Merrill committed -
PR c++/43079 * pt.c (convert_nontype_argument): Change assert to test. From-SVN: r156839
Jason Merrill committed
-
- 16 Feb, 2010 3 commits
-
-
From-SVN: r156803
Jason Merrill committed -
re PR c++/43031 (internal compiler error: verify_gimple failed after non-trivial conversion error when crosscompiling Firefox) PR c++/43031 * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use VIEW_CONVERT_EXPR for conversions between structural equality types that the back end can't tell are the same. From-SVN: r156793
Jason Merrill committed -
PR c++/43036 * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip cv-quals from element here. (cp_build_qualified_type_real): Not here. Preserve typedef name. From-SVN: r156792
Jason Merrill committed
-
- 14 Feb, 2010 1 commit
-
-
PR c++/41997 * semantics.c (finish_compound_literal): Use cp_apply_type_quals_to_decl when creating a static variable. From-SVN: r156760
Jason Merrill committed
-
- 12 Feb, 2010 4 commits
-
-
PR c++/43024 * name-lookup.h (current_binding_level): Check for null cp_function_chain. From-SVN: r156741
Jason Merrill committed -
From-SVN: r156738
Jason Merrill committed -
PR c++/43054 * tree.c (cp_tree_equal): Correct CALL_EXPR logic, handle EXPR_PACK_EXPANSION. From-SVN: r156737
Jason Merrill committed -
PR c++/43033 * name-lookup.c (pushdecl_maybe_friend): Check default args of t instead of x. * g++.dg/other/default3.C: Xfail g4 test. From-SVN: r156734
Jakub Jelinek committed
-
- 11 Feb, 2010 1 commit
-
-
PR c++/41896 * semantics.c (outer_lambda_capture_p): Revert. (add_capture): Only finish_member_declaration if we're in the lambda class. (register_capture_members): New. * cp-tree.h: Declare it. * parser.c (cp_parser_lambda_expression): Call it. From-SVN: r156678
Jason Merrill committed
-
- 10 Feb, 2010 4 commits
-
-
PR c++/41896 * semantics.c (outer_lambda_capture_p): Use current_function_decl instead of current_class_type. From-SVN: r156673
Jason Merrill committed -
PR c++/42983, core issue 906 * method.c (defaultable_fn_check): Check virtualness. * include/std/thread (~_Impl_base): Move default out of line. * libsupc++/nested_exception.h (~nested_exception): Likewise. From-SVN: r156672
Jason Merrill committed -
re PR c++/43016 ([C++0x] Inappropriate multiple definition error for lambda function when inside inline functions) PR c++/43016 * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN. From-SVN: r156671
Jason Merrill committed -
2010-02-10 Shujing Zhao <pearly.zhao@oracle.com> * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h. * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy translation. * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id) (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype) (cp_parser_parameter_declaration) (cp_parser_exception_specification_opt) (cp_parser_exception_declaration): Likewise. * pt.c (check_default_tmpl_args): Likewise. * search.c (lookup_field_r): Likewise. From-SVN: r156645
Shujing Zhao committed
-
- 09 Feb, 2010 2 commits
-
-
re PR c++/42399 ([c++0x] assigning lambda causes segfault from null dereference at libiberty/splay-tree.c:148) PR c++/42399 * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION. From-SVN: r156635
Jason Merrill committed -
re PR c++/42370 ([C++0x][lambda] in a void function: "Warning: control reaches end of non-void function") PR c++/42370 * decl2.c (change_return_type): New fn. * semantics.c (apply_lambda_return_type): Use it. * cp-tree.h: Declare it. From-SVN: r156634
Jason Merrill committed
-
- 05 Feb, 2010 2 commits
-
-
2010-02-05 Richard Guenther <rguenther@suse.de> * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h. * cp-lang.c: Include gt-cp-cp-lang.h. * config-lang.in (gtfiles): Add cp/cp-lang.c. From-SVN: r156521
Richard Guenther committed -
Fix PR c++/42915 gcc/cp/ChangeLog: PR c++/42915 * typeck.c (get_template_parms_of_dependent_type): Try getting the template parameters fromt the type itself first. gcc/testsuite/ChangeLog: PR c++/42915 g++.dg/other/crash-9.C: New test. From-SVN: r156514
Dodji Seketeli committed
-
- 03 Feb, 2010 3 commits
-
-
PR c++/4926 PR c++/38600 * mangle.c (write_unqualified_id): Split out from write_expression. (write_unqualified_name): Call it. (write_member_name): Likewise. (write_expression): Support TEMPLATE_ID_EXPR. Disambiguate operator names. From-SVN: r156482
Jason Merrill committed -
PR c++/12909 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling. From-SVN: r156481
Jason Merrill committed -
PR c++/41090 * decl.c (cp_finish_decl): Add local statics to cfun->local_decls. * optimize.c (clone_body): Remap their initializers when making base variants. (maybe_clone_body): Complain if multiple clones aren't safe. From-SVN: r156455
Jason Merrill committed
-
- 29 Jan, 2010 2 commits
-
-
... and mitigate PR c++/42336 gcc/cp/ChangeLog: PR c++/42758 PR c++/42634 PR c++/42336 PR c++/42797 PR c++/42880 * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT, SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT, GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros. * pt.c (coerce_template_parms, type_unification_real, expand_template_argument_pack, coerce_template_parameter_pack): Set the non default template args count. (current_template_args): Always set non defaulted template args count when compiled with --enable-checking (tsubst_template_args, type_unification_real): Propagate the non defaulted template args count. * error.c (get_non_default_template_args_count): Renamed count_non_default_template_args into this. Don't calculate the non default template argument count anymore. Use the new accessor macros above to get it. (dump_template_argument_list, dump_type, dump_decl, dump_template_parms): Adjust. * parser.c (cp_parser_template_argument_list): Always set defaulted template args count when compiled with --enable-checking. gcc/testsuite/ChangeLog: PR c++/42758 PR c++/42634 PR c++/42336 PR c++/42797 PR c++/42880 * g++.dg/other/crash-5.C: New test. * g++.dg/other/crash-6.C: New test. * g++.dg/other/crash-7.C: New test. * g++.dg/other/crash-8.C: New test. From-SVN: r156351
Dodji Seketeli committed -
2010-01-29 Shujing Zhao <pearly.zhao@oracle.com> * decl.c (redeclaration_error_message): Wrap the return messages to G_() for easy translation. From-SVN: r156340
Shujing Zhao committed
-
- 28 Jan, 2010 2 commits
-
-
PR c++/42880 * semantics.c (begin_class_definition): Don't use type_as_string. From-SVN: r156336
Jason Merrill committed -
Fix PR c++/42713 gcc/cp/ChangeLog: PR c++/42713 PR c++/42820 * typeck.c (get_template_parms_of_dependent_type): Factorized this out of incompatible_template_type_parms_p (incompatible_dependent_types_p): Renamed incompatible_template_type_parms_p into this. Make it detect two incompatible dependent typedefs too. (structural_comptypes): Use incompatible_dependent_types_p. * pt.c (get_template_info): Handle BOUND_TEMPLATE_TEMPLATE_PARAM. gcc/testsuite/ChangeLog: PR c++/42713 PR c++/42820 * g++.dg/template/typedef27.C: New test case. * g++.dg/template/typedef28.C: New test case. From-SVN: r156316
Dodji Seketeli committed
-
- 27 Jan, 2010 1 commit
-
-
From-SVN: r156300
Jason Merrill committed
-
- 21 Jan, 2010 1 commit
-
-
* tree.h (TYPE_TRANSPARENT_UNION): Replace with ... (TYPE_TRANSPARENT_AGGR): this, for union and record. * calls.c (initialize argument_information): Handle it. * c-common.c (handle_transparent_union_attribute): Use new name. * c-decl.c (finish_struct): Ditto. * c-typeck.c (type_lists_compatible_p): Ditto. (convert_for_assignment): Use new name and also handle record. * function.c (aggregate_value_p): Handle it. (pass_by_reference): Ditto. (assign_parm_data_types): Ditto. * print-tree.c (print_node): Ditto. * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto. * lto-streamer-out.c (pack_ts_type_value_fields): Ditto. * tree.c (first_field): New fn. gcc/cp/ * mangle.c (write_type): Mangle transparent record as member type. * semantics.c (begin_class_definition): Recognize decimal classes and set TYPE_TRANSPARENT_AGGR. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r156106
Janis Johnson committed
-