- 27 Jun, 2011 2 commits
-
-
* c-common.h (c_tree_chain_next): New static inline function. * c-decl.c (union lang_tree_node): Use it in chain_next expression. * cp-tree.h (union lang_tree_node): Use it in chain_next expression. From-SVN: r175542
Jakub Jelinek committed -
re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference) PR c++/49528 * semantics.c (potential_constant_expression_1): Check for non-literality rather than cleanup. (cxx_eval_constant_expression): Likewise. From-SVN: r175417
Jason Merrill committed
-
- 26 Jun, 2011 3 commits
-
-
re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference) PR c++/49528 * semantics.c (potential_constant_expression_1): A TARGET_EXPR with a cleanup isn't constant. (cxx_eval_constant_expression): Likewise. * init.c (expand_default_init): Use maybe_constant_init. From-SVN: r175409
Jason Merrill committed -
From-SVN: r175406
Jason Merrill committed -
From-SVN: r175405
Jason Merrill committed
-
- 24 Jun, 2011 4 commits
-
-
PR c++/46400 * cp-tree.h (union lang_tree_node): Use TYPE_NEXT_VARIANT instead of TYPE_CHAIN for chain_next for types. * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT instead of TYPE_CHAIN for chain_next for types. From-SVN: r175389
Jakub Jelinek committed -
2011-06-23 Gabriel Charette <gchare@google.com> * name-lookup.h (cp_binding_level): Removed unused member names_size. Update all users. From-SVN: r175373
Gabriel Charette committed -
PR c++/49418 * typeck2.c (build_functional_cast): Strip cv-quals for value init. * init.c (build_zero_init_1): Not here. From-SVN: r175368
Jason Merrill committed -
PR c++/35255 * pt.c (resolve_overloaded_unification): Fix DR 115 handling. From-SVN: r175367
Jason Merrill committed
-
- 23 Jun, 2011 6 commits
-
-
/cp 2011-06-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44625 * decl2.c (build_anon_union_vars): Early return error_mark_node for a nested anonymous struct. /testsuite 2011-06-23 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44625 * g++.dg/template/crash107.C: New. * g++.dg/template/error17.C: Adjust. From-SVN: r175344
Paolo Carlini committed -
PR c++/49507 * decl2.c (mark_used): Don't call synthesize_method for functions defaulted outside the class. From-SVN: r175342
Jason Merrill committed -
* optimize.c (maybe_clone_body): Set linkage flags before cgraph_same_body_alias. From-SVN: r175341
Jason Merrill committed -
PR c++/49440 * class.c (set_linkage_according_to_type): Just check TREE_PUBLIC on the type's name. From-SVN: r175340
Jason Merrill committed -
PR c++/49395 * init.c (build_zero_init_1): Strip cv-quals from scalar types. From-SVN: r175339
Jason Merrill committed -
PR c++/36435 * pt.c (most_specialized_instantiation): Do check return types. From-SVN: r175338
Jason Merrill committed
-
- 22 Jun, 2011 2 commits
-
-
PR c++/49260 * call.c (build_call_a): Set cp_function_chain->can_throw here. (build_cxx_call): Not here. From-SVN: r175296
Jason Merrill committed -
PR c++/49172 * decl.c (cp_finish_decl): Adjust init_const_expr_p for refs. (grokdeclarator): constexpr doesn't apply const for refs. * parser.c (cp_parser_initializer_clause): Don't call maybe_constant_value here. * call.c (initialize_reference): Handle constexpr. From-SVN: r175284
Jason Merrill committed
-
- 21 Jun, 2011 6 commits
-
-
PR c++/49482 * semantics.c (maybe_add_lambda_conv_op): Call mark_exp_read for static fn parameters. From-SVN: r175273
Jason Merrill committed -
* call.c (add_builtin_candidates): Use cv_unqualified rather than TYPE_MAIN_VARIANT. * pt.c (tsubst_arg_types): Likewise. * except.c (build_throw): Use cv_unqualified. From-SVN: r175272
Jason Merrill committed -
PR c++/49418 * call.c (cxx_type_promotes_to): Don't strip cv-quals. * semantics.c (lambda_return_type): Strip them here. From-SVN: r175271
Jason Merrill committed -
cosmetic. Add sync_ to all the expand_builtin defines which do not match the actual builtin_sync_ names. 2011-06-21 Andrew MacLeod <amacleod@redhat.com> * builtins.c: Add sync_ or SYNC__ to builtin names. * sync-builtins.def: Add sync_ or SYNC__ to builtin names. * omp-low.c: Add sync_ or SYNC__ to builtin names. * c-family/c-common.c: Add sync_ or SYNC__ to builtin names. * c-family/c-omp.c: Add sync_ or SYNC__ to builtin names. * java/builtins.c: Add sync_ or SYNC__ to builtin names. * java/expr.c: Add sync_ or SYNC__ to builtin names. * cp/semantics.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-openmp.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-stmt.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-decl.c: Add sync_ or SYNC__ to builtin names. From-SVN: r175270
Andrew MacLeod committed -
PR c++/49216 * init.c (build_vec_init): Don't try to use a CONSTRUCTOR when base is a pointer. * typeck2.c (process_init_constructor_array): Use {} for classes, too. * call.c (convert_like_real): Handle substitution failure. From-SVN: r175237
Jason Merrill committed -
re PR c++/48138 (__attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.) PR c++/48138 * pt.c (canonicalize_type_argument): New. (convert_template_argument, unify): Use it. From-SVN: r175236
Jason Merrill committed
-
- 20 Jun, 2011 6 commits
-
-
re PR c++/47080 ([C++0x] explicit conversion function return conversions not restricted to qualifications) PR c++/47080 * call.c (rejection_reason_code): Add rr_explicit_conversion. (print_z_candidate): Handle it. (explicit_conversion_rejection): New. (build_user_type_conversion_1): Reject an explicit conversion function that requires more than a qualification conversion. From-SVN: r175217
Jason Merrill committed -
PR c++/47635 * decl.c (grokdeclarator): Don't set ctype to an ENUMERAL_TYPE. From-SVN: r175216
Jason Merrill committed -
re PR c++/48138 (__attribute__((aligned)) should give an error when applied to a typedef or template parameter, at least in C++0x mode.) PR c++/48138 * tree.c (strip_typedefs): Use build_aligned_type. From-SVN: r175215
Jason Merrill committed -
PR c++/49205 * call.c (sufficient_parms_p): Allow parameter packs too. From-SVN: r175214
Jason Merrill committed -
PR c++/43321 * semantics.c (describable_type): Remove. * cp-tree.h: Likewise. * decl.c (cp_finish_decl): Don't call it. * init.c (build_new): Likewise. * parser.c (cp_parser_omp_for_loop): Likewise. * pt.c (tsubst_decl): Likewise. (do_auto_deduction): If we fail in a template, try again at instantiation time. From-SVN: r175212
Jason Merrill committed -
PR c++/43831 * parser.c (cp_parser_lambda_introducer): Complain about redundant captures. * semantics.c (add_capture): Likewise. (register_capture_members): Clear IDENTIFIER_MARKED. From-SVN: r175211
Jason Merrill committed
-
- 18 Jun, 2011 1 commit
-
-
PR c++/49458 * call.c (convert_class_to_reference_1): Allow binding function lvalue to rvalue reference. From-SVN: r175164
Jason Merrill committed
-
- 17 Jun, 2011 7 commits
-
-
PR c++/43912 Generate proxy VAR_DECLs for better lambda debug info. * cp-tree.h (FUNCTION_NEEDS_BODY_BLOCK): Add lambda operator(). (LAMBDA_EXPR_PENDING_PROXIES): New. (struct tree_lambda_expr): Add pending_proxies. * name-lookup.c (pushdecl_maybe_friend_1): Handle capture shadowing. (qualify_lookup): Use is_lambda_ignored_entity. * parser.c (cp_parser_lambda_expression): Don't adjust field names. Call insert_pending_capture_proxies. (cp_parser_lambda_introducer): Use this_identifier. (cp_parser_lambda_declarator_opt): Call the object parameter of the op() "__closure" instead of "this". (cp_parser_lambda_body): Call build_capture_proxy. * semantics.c (build_capture_proxy, is_lambda_ignored_entity): New. (insert_pending_capture_proxies, insert_capture_proxy): New. (is_normal_capture_proxy, is_capture_proxy): New. (add_capture): Add __ to field names here, return capture proxy. (add_default_capture): Use this_identifier, adjust to expect add_capture to return a capture proxy. (outer_lambda_capture_p, thisify_lambda_field): Remove. (finish_id_expression, lambda_expr_this_capture): Adjust. (build_lambda_expr): Initialize LAMBDA_EXPR_PENDING_PROXIES. * pt.c (tsubst_copy_and_build): Check that LAMBDA_EXPR_PENDING_PROXIES is null. From-SVN: r175158
Jason Merrill committed -
* name-lookup.c (pushdecl_maybe_friend_1): Do check for shadowing of artificial locals. From-SVN: r175157
Jason Merrill committed -
* parser.c (cp_parser_lambda_expression): Clear LAMBDA_EXPR_THIS_CAPTURE after parsing. * pt.c (tsubst_copy_and_build): Make sure it isn't set. From-SVN: r175156
Jason Merrill committed -
* cp-tree.h (struct tree_lambda_expr): Change common to typed. Move non-pointers to end of struct. From-SVN: r175155
Jason Merrill committed -
From-SVN: r175154
Jason Merrill committed -
* pt.c (tsubst_decl): Handle DECL_VALUE_EXPR on reference. * decl.c (check_initializer): Handle DECL_VALUE_EXPR_P. From-SVN: r175153
Jason Merrill committed -
* semantics.c (finish_non_static_data_member): Preserve dereference in template. From-SVN: r175152
Jason Merrill committed
-
- 16 Jun, 2011 3 commits
-
-
PR c++/44160 * parser.c (cp_parser_lambda_body): Share code between simple and complex cases instead of using cp_parser_function_body. From-SVN: r175123
Jason Merrill committed -
PR c++/45378 * decl.c (check_initializer): Check narrowing. From-SVN: r175122
Jason Merrill committed -
PR c++/49229 * pt.c (tsubst_decl) [FUNCTION_DECL]: Handle substitution failure. From-SVN: r175120
Jason Merrill committed
-