Age | Commit message (Collapse) | Author | Files | Lines |
|
PR c++/51930
* decl2.c (determine_visibility): Correct calculation of class
args depth.
* decl.c (check_tag_decl): Adjust warning.
From-SVN: r184946
|
|
* method.c (synthesized_method_walk): Cleanups don't affect the EH
spec either.
From-SVN: r184945
|
|
From-SVN: r184877
|
|
Core 1270
* call.c (build_aggr_conv): Call reshape_init.
(convert_like_real): Likewise.
* typeck2.c (process_init_constructor): Clear TREE_CONSTANT if
not all constant.
From-SVN: r184876
|
|
* mangle.c (write_nested_name): Use decl_mangling_context.
(write_prefix, write_template_prefix): Likewise.
From-SVN: r184875
|
|
PR c++/36797
* mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR.
From-SVN: r184874
|
|
* class.c (add_method): Always build an OVERLOAD for using-decls.
* search.c (lookup_member): Handle getting an OVERLOAD for a
single function.
From-SVN: r184873
|
|
/cp
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51989
* typeck2.c (build_x_arrow): Take a tsubst_flags_t argument and
propagate it.
* cp-tree.h (build_x_arrow): Adjust prototype.
* pt.c (tsubst_copy_and_build): Adjust call.
* parser.c (cp_parser_postfix_dot_deref_expression): Likewise.
/testsuite
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51989
* g++.dg/cpp0x/sfinae32.C: New.
From-SVN: r184796
|
|
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
* name-lookup.c (binding_to_template_parms_of_scope_p): Clean up.
From-SVN: r184792
|
|
PR c++/51930
* decl.c (check_tag_decl): Move warning for misplaced attributes here.
(shadow_tag): From here.
* parser.c (cp_parser_explicit_instantiation): Don't warn here.
From-SVN: r184753
|
|
PR c++/52312
* typeck.c (check_literal_operator_args): Initialize *long_double_p
and *long_long_unsigned_p even if processing_template_decl.
From-SVN: r184416
|
|
PR c++/52248
* decl.c (define_label): Use timevar_cond_start/stop.
From-SVN: r184329
|
|
gcc/testsuite/ChangeLog
2012-02-16 Fabien Chene <fabien@gcc.gnu.org>
PR c++/52126
* g++.dg/template/using21.C: New.
* g++.dg/template/using22.C: Likewise.
gcc/cp/ChangeLog
2012-02-16 Fabien Chene <fabien@gcc.gnu.org>
PR c++/52126
* decl.c (xref_basetypes): call dependent_scope_p instead of
dependent_type_p.
From-SVN: r184328
|
|
PR c++/51415
* error.c (dump_expr): Handle lambda closures specifically.
From-SVN: r184314
|
|
attributes on explicit class instantiation.
* parser.c (cp_parser_explicit_instantiation): Give a warning
for ignored attributes on explicit class instantiation.
From-SVN: r184254
|
|
PR c++/52247
* pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call
lookup_label on label's name and set TREE_USED.
* g++.dg/template/asmgoto1.C: New test.
From-SVN: r184229
|
|
parameter of a member function accepted)
PR c++/39055
* decl.c (local_variable_p_walkfn): Don't check DECL_ARTIFICIAL.
From-SVN: r184199
|
|
PR c/52181
* c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
newdecl.
* decl.c (duplicate_decls): If olddecl has bigger DECL_ALIGN than
newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits.
* c-c++-common/pr52181.c: New test.
From-SVN: r184193
|
|
PR c++/51675
* semantics.c (cx_check_missing_mem_inits): Handle unions.
Fix constexpr default constructor logic.
From-SVN: r184001
|
|
is not supported in LTO streams)
PR c++/52035
* pt.c (tsubst): Strip uninstantiated typedef.
From-SVN: r184000
|
|
PR c++/52088
* cvt.c (build_expr_type_conversion): Check for template conversion.
From-SVN: r183940
|
|
-Wreturn-type)
PR c++/52043
* cp-tree.h (PACK_EXPANSION_LOCAL_P): New.
* pt.c (make_pack_expansion, tsubst_initializer_list): Set it.
(tsubst_pack_expansion): Check it.
From-SVN: r183768
|
|
template parameter"
This reverts commit r183726
From-SVN: r183728
|
|
gcc/cp/
PR c++/51641
* cp-tree.h (template_type_parameter_p): Declare new function.
(parameter_of_template_p): Remove
* pt.c (template_type_parameter_p): Define new function.
(parameter_of_template_p): Remove.
* name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely
on parameter_of_template_p anymore. Compare the level of the
template parameter to the depth of the template.
gcc/testsuite/
PR c++/51641
* g++.dg/lookup/hidden-class17.C: New test.
From-SVN: r183726
|
|
/cp
2012-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51327
* class.c (explain_non_literal_class): Correctly handle implicitly
deleted constructors.
/testsuite
2012-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51327
* g++.dg/cpp0x/constexpr-ice6.C: New.
From-SVN: r183685
|
|
/cp
2012-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51327
* class.c (explain_non_literal_class): Correctly handle implicitly
deleted constructors.
/testsuite
2012-01-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51327
* g++.dg/cpp0x/constexpr-ice6.C: New.
From-SVN: r183684
|
|
HßèMÕþÿøtxøtsø)
PR c++/51852
* pt.c (tsubst_pack_expansion): Delete and restore
local_specialization whenever need_local_specialization, not just
when saved_local_specializations is non-NULL.
* g++.dg/other/gc5.C: New test.
From-SVN: r183637
|
|
/cp
2012-01-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51370
* error.c (dump_decl, [TEMPLATE_ID_EXPR]): Handle error_mark_node
as TREE_OPERAND (t, 1).
/testsuite
2012-01-26 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51370
* g++.dg/template/crash112.C: New.
From-SVN: r183593
|
|
PR c++/51917
* decl.c (xref_basetypes): Check VEC_length instead of VEC_space.
From-SVN: r183509
|
|
functions when template parameters have defaulted arguments)
PR c++/51973
* tree.c (called_fns_equal): Check template args.
(cp_tree_equal): Call it.
From-SVN: r183487
|
|
instead...
+ PR c++/51928
+ * class.c (set_method_tm_attributes): Use TARGET_THUNK instead of
+ thunk for set_one_vmethod_tm_attributes.
Co-Authored-By: Patrick Marlier <patrick.marlier@gmail.com>
From-SVN: r183478
|
|
/cp
2012-01-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51223
* call.c (build_over_call): Check for error_mark_node as
TREE_VALUE when default arguments are processed.
/testsuite
2012-01-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51223
* g++.dg/parse/crash58.C: New.
From-SVN: r183472
|
|
PR c++/51930
* decl2.c (determine_visibility): Check for visibility attribute
on template specialization.
From-SVN: r183455
|
|
/cp
2012-01-23 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51398
* pt.c (parameter_of_template_p): Skip error_mark_node parameters.
/testsuite
2012-01-23 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51398
* g++.dg/template/crash111.C: New.
From-SVN: r183445
|
|
PR c++/51925
* class.c (add_method): Set OVL_USED for using-decls.
* tree.c (ovl_scope): New.
* cp-tree.h: Declare it.
* parser.c (cp_parser_template_name): Use it.
* semantics.c (baselink_for_fns): Likewise.
* name-lookup.c (set_inherited_value_binding_p): Likewise.
From-SVN: r183438
|
|
/cp
2012-01-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51402
* pt.c (lookup_template_class_1): Check context returned by
tsubst for error_mark_node.
/testsuite
2012-01-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51402
* g++.dg/template/crash110.C: New.
From-SVN: r183345
|
|
2012-01-19 Kai Tietz <ktietz@redhat.com>
PR c++/51344
* decl2.c (save_template_attributes): Use merge_attributes
instead of chaining up via TREE_CHAIN.
2012-01-19 Kai Tietz <ktietz@redhat.com>
* g++.dg/torture/pr51344.C: New test.
From-SVN: r183313
|
|
PR c++/51889
* class.c (finish_struct): Call add_method here for function usings.
* semantics.c (finish_member_declaration): Not here.
From-SVN: r183304
|
|
/cp
2012-01-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51225
* typeck2.c (store_init_value): Within a template guard
cxx_constant_value with require_potential_constant_expression.
* pt.c (convert_nontype_argument): Likewise.
/testsuite
2012-01-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51225
* g++.dg/cpp0x/pr51225.C: New.
From-SVN: r183286
|
|
PR c++/51854
* mangle.c (write_template_arg_literal): Handle complex.
From-SVN: r183222
|
|
PCH/LTO/C++11)
PR c++/51827
* mangle.c (mangle_decl): Don't mangle uninstantiated templates.
From-SVN: r183221
|
|
a bit field)
PR c++/51868
* typeck.c (build_static_cast_1): Handle bit-fields properly.
From-SVN: r183218
|
|
extraneous parentheses are present)
gcc/:
PR c++/50012
* tree.h (TYPE_QUALS): Add cast to int.
(TYPE_QUALS_NO_ADDR_SPACE): Likewise.
gcc/cp:
PR c++/50012
* typeck.c (enum_cast_to_int): New static function.
(cp_build_binary_op): When handling warn_sign_compare, don't test
for TREE_NO_WARNING. Do call enum_cast_to_int.
* call.c (avoid_sign_compare_warnings): Remove static function.
(build_new_op_1): Don't call avoid_sign_compare_warnings.
gcc/testsuite/:
PR c++/50012
* g++.dg/warn/Wsign-compare-4.C: New.
From-SVN: r183178
|
|
gcc/
* c-decl.c: Do not include tree-mudflap.h
* tree-optimize.c: Likewise.
* Makefile.in: Update dependencies.
cp/
* decl2.c: Do not include tree-mudflap.h
* semantics.c: Likewise.
From-SVN: r183165
|
|
PR c++/20681
* semantics.c (finish_break_stmt): Avoid adding an unreachable
BREAK_STMT.
From-SVN: r183161
|
|
undefined)
PR c++/51813
* decl2.c (constrain_visibility): Clear DECL_VISIBILITY_SPECIFIED
when reducing the visibility.
From-SVN: r183156
|
|
PR c++/51620
* class.c (build_vtbl_initializer): Use __cxa_deleted_virtual.
From-SVN: r183155
|
|
PR c++/51714
* pt.c (value_dependent_expression_p): Treat STMT_EXPR as
value-dependent.
From-SVN: r183149
|
|
gcc/cp/
PR c++/51633
* semantics.c (cp_parser_ctor_initializer_opt_and_function_body):
Set the pointer to the last block of the constructor to the
current statement.
(build_constexpr_constructor_member_initializers): Get
build_data_member_initialization a chance to deal with more
statements before we choke.
gcc/testsuite/
PR c++/51633
* g++.dg/cpp0x/constexpr-diag4.C: New test.
From-SVN: r183144
|
|
PR c++/48051
* mangle.c (write_expression): Mangle BASELINK scope if
BASELINK_QUALIFIED_P.
* search.c (adjust_result_of_qualified_name_lookup): Set
BASELINK_QUALIFIED_P.
* tree.c (cp_tree_equal) [BASELINK]: Compare BASELINK_QUALIFIED_P.
* parser.c (cp_parser_postfix_dot_deref_expression): Don't call
adjust_result_of_qualified_name_lookup for non-qualified names.
From-SVN: r183133
|