| 1 |
710 |
jeremybenn |
2012-02-21 Jakub Jelinek
|
| 2 |
|
|
|
| 3 |
|
|
PR c++/52312
|
| 4 |
|
|
* typeck.c (check_literal_operator_args): Initialize *long_double_p
|
| 5 |
|
|
and *long_long_unsigned_p even if processing_template_decl.
|
| 6 |
|
|
|
| 7 |
|
|
2012-02-16 Jason Merrill
|
| 8 |
|
|
|
| 9 |
|
|
PR c++/52248
|
| 10 |
|
|
* decl.c (define_label): Use timevar_cond_start/stop.
|
| 11 |
|
|
|
| 12 |
|
|
2012-02-16 Fabien ChĂȘne
|
| 13 |
|
|
|
| 14 |
|
|
PR c++/52126
|
| 15 |
|
|
* decl.c (xref_basetypes): call dependent_scope_p instead of
|
| 16 |
|
|
dependent_type_p.
|
| 17 |
|
|
|
| 18 |
|
|
2012-02-16 Jason Merrill
|
| 19 |
|
|
|
| 20 |
|
|
PR c++/51415
|
| 21 |
|
|
* error.c (dump_expr): Handle lambda closures specifically.
|
| 22 |
|
|
|
| 23 |
|
|
2012-02-14 Jason Merrill
|
| 24 |
|
|
|
| 25 |
|
|
* parser.c (cp_parser_explicit_instantiation): Give a warning
|
| 26 |
|
|
for ignored attributes on explicit class instantiation.
|
| 27 |
|
|
|
| 28 |
|
|
2012-02-14 Jakub Jelinek
|
| 29 |
|
|
|
| 30 |
|
|
PR c++/52247
|
| 31 |
|
|
* pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call
|
| 32 |
|
|
lookup_label on label's name and set TREE_USED.
|
| 33 |
|
|
|
| 34 |
|
|
2012-02-14 Jason Merrill
|
| 35 |
|
|
|
| 36 |
|
|
PR c++/39055
|
| 37 |
|
|
* decl.c (local_variable_p_walkfn): Don't check DECL_ARTIFICIAL.
|
| 38 |
|
|
|
| 39 |
|
|
2012-02-14 Jakub Jelinek
|
| 40 |
|
|
|
| 41 |
|
|
PR c/52181
|
| 42 |
|
|
* decl.c (duplicate_decls): If olddecl has bigger DECL_ALIGN than
|
| 43 |
|
|
newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits.
|
| 44 |
|
|
|
| 45 |
|
|
2012-02-07 Jason Merrill
|
| 46 |
|
|
|
| 47 |
|
|
PR c++/51675
|
| 48 |
|
|
* semantics.c (cx_check_missing_mem_inits): Handle unions.
|
| 49 |
|
|
Fix constexpr default constructor logic.
|
| 50 |
|
|
|
| 51 |
|
|
PR c++/52035
|
| 52 |
|
|
* pt.c (tsubst): Strip uninstantiated typedef.
|
| 53 |
|
|
|
| 54 |
|
|
2012-02-06 Jason Merrill
|
| 55 |
|
|
|
| 56 |
|
|
PR c++/52088
|
| 57 |
|
|
* cvt.c (build_expr_type_conversion): Check for template conversion.
|
| 58 |
|
|
|
| 59 |
|
|
2012-01-31 Jason Merrill
|
| 60 |
|
|
|
| 61 |
|
|
PR c++/52043
|
| 62 |
|
|
* cp-tree.h (PACK_EXPANSION_LOCAL_P): New.
|
| 63 |
|
|
* pt.c (make_pack_expansion, tsubst_initializer_list): Set it.
|
| 64 |
|
|
(tsubst_pack_expansion): Check it.
|
| 65 |
|
|
|
| 66 |
|
|
2012-01-29 Paolo Carlini
|
| 67 |
|
|
|
| 68 |
|
|
PR c++/51327
|
| 69 |
|
|
* class.c (explain_non_literal_class): Correctly handle implicitly
|
| 70 |
|
|
deleted constructors.
|
| 71 |
|
|
|
| 72 |
|
|
2012-01-27 Jakub Jelinek
|
| 73 |
|
|
|
| 74 |
|
|
PR c++/51852
|
| 75 |
|
|
* pt.c (tsubst_pack_expansion): Delete and restore
|
| 76 |
|
|
local_specialization whenever need_local_specialization, not just
|
| 77 |
|
|
when saved_local_specializations is non-NULL.
|
| 78 |
|
|
|
| 79 |
|
|
2012-01-26 Paolo Carlini
|
| 80 |
|
|
|
| 81 |
|
|
PR c++/51370
|
| 82 |
|
|
* error.c (dump_decl, [TEMPLATE_ID_EXPR]): Handle error_mark_node
|
| 83 |
|
|
as TREE_OPERAND (t, 1).
|
| 84 |
|
|
|
| 85 |
|
|
2012-01-24 Jason Merrill
|
| 86 |
|
|
|
| 87 |
|
|
PR c++/51917
|
| 88 |
|
|
* decl.c (xref_basetypes): Check VEC_length instead of VEC_space.
|
| 89 |
|
|
|
| 90 |
|
|
PR c++/51973
|
| 91 |
|
|
* tree.c (called_fns_equal): Check template args.
|
| 92 |
|
|
(cp_tree_equal): Call it.
|
| 93 |
|
|
|
| 94 |
|
|
2012-01-24 Aldy Hernandez
|
| 95 |
|
|
Patrick Marlier
|
| 96 |
|
|
|
| 97 |
|
|
PR c++/51928
|
| 98 |
|
|
* class.c (set_method_tm_attributes): Use TARGET_THUNK instead of
|
| 99 |
|
|
thunk for set_one_vmethod_tm_attributes.
|
| 100 |
|
|
|
| 101 |
|
|
2012-01-24 Paolo Carlini
|
| 102 |
|
|
|
| 103 |
|
|
PR c++/51223
|
| 104 |
|
|
* call.c (build_over_call): Check for error_mark_node as
|
| 105 |
|
|
TREE_VALUE when default arguments are processed.
|
| 106 |
|
|
|
| 107 |
|
|
2012-01-23 Jason Merrill
|
| 108 |
|
|
|
| 109 |
|
|
PR c++/51930
|
| 110 |
|
|
* decl2.c (determine_visibility): Check for visibility attribute
|
| 111 |
|
|
on template specialization.
|
| 112 |
|
|
|
| 113 |
|
|
2012-01-23 Paolo Carlini
|
| 114 |
|
|
|
| 115 |
|
|
PR c++/51398
|
| 116 |
|
|
* pt.c (parameter_of_template_p): Skip error_mark_node parameters.
|
| 117 |
|
|
|
| 118 |
|
|
2012-01-23 Jason Merrill
|
| 119 |
|
|
|
| 120 |
|
|
PR c++/51925
|
| 121 |
|
|
* class.c (add_method): Set OVL_USED for using-decls.
|
| 122 |
|
|
* tree.c (ovl_scope): New.
|
| 123 |
|
|
* cp-tree.h: Declare it.
|
| 124 |
|
|
* parser.c (cp_parser_template_name): Use it.
|
| 125 |
|
|
* semantics.c (baselink_for_fns): Likewise.
|
| 126 |
|
|
* name-lookup.c (set_inherited_value_binding_p): Likewise.
|
| 127 |
|
|
|
| 128 |
|
|
2012-01-20 Paolo Carlini
|
| 129 |
|
|
|
| 130 |
|
|
PR c++/51402
|
| 131 |
|
|
* pt.c (lookup_template_class_1): Check context returned by
|
| 132 |
|
|
tsubst for error_mark_node.
|
| 133 |
|
|
|
| 134 |
|
|
2012-01-19 Kai Tietz
|
| 135 |
|
|
|
| 136 |
|
|
PR c++/51344
|
| 137 |
|
|
* decl2.c (save_template_attributes): Use merge_attributes
|
| 138 |
|
|
instead of chaining up via TREE_CHAIN.
|
| 139 |
|
|
|
| 140 |
|
|
2012-01-19 Jason Merrill
|
| 141 |
|
|
|
| 142 |
|
|
PR c++/51889
|
| 143 |
|
|
* class.c (finish_struct): Call add_method here for function usings.
|
| 144 |
|
|
* semantics.c (finish_member_declaration): Not here.
|
| 145 |
|
|
|
| 146 |
|
|
2012-01-18 Paolo Carlini
|
| 147 |
|
|
|
| 148 |
|
|
PR c++/51225
|
| 149 |
|
|
* typeck2.c (store_init_value): Within a template guard
|
| 150 |
|
|
cxx_constant_value with require_potential_constant_expression.
|
| 151 |
|
|
* pt.c (convert_nontype_argument): Likewise.
|
| 152 |
|
|
|
| 153 |
|
|
2012-01-16 Jakub Jelinek
|
| 154 |
|
|
|
| 155 |
|
|
PR c++/51854
|
| 156 |
|
|
* mangle.c (write_template_arg_literal): Handle complex.
|
| 157 |
|
|
|
| 158 |
|
|
2012-01-16 Jason Merrill
|
| 159 |
|
|
|
| 160 |
|
|
PR c++/51827
|
| 161 |
|
|
* mangle.c (mangle_decl): Don't mangle uninstantiated templates.
|
| 162 |
|
|
|
| 163 |
|
|
PR c++/51868
|
| 164 |
|
|
* typeck.c (build_static_cast_1): Handle bit-fields properly.
|
| 165 |
|
|
|
| 166 |
|
|
2012-01-13 Ian Lance Taylor
|
| 167 |
|
|
|
| 168 |
|
|
PR c++/50012
|
| 169 |
|
|
* typeck.c (enum_cast_to_int): New static function.
|
| 170 |
|
|
(cp_build_binary_op): When handling warn_sign_compare, don't test
|
| 171 |
|
|
for TREE_NO_WARNING. Do call enum_cast_to_int.
|
| 172 |
|
|
* call.c (avoid_sign_compare_warnings): Remove static function.
|
| 173 |
|
|
(build_new_op_1): Don't call avoid_sign_compare_warnings.
|
| 174 |
|
|
|
| 175 |
|
|
2012-01-13 Steven Bosscher
|
| 176 |
|
|
|
| 177 |
|
|
* decl2.c: Do not include tree-mudflap.h
|
| 178 |
|
|
* semantics.c: Likewise.
|
| 179 |
|
|
|
| 180 |
|
|
2012-01-13 Jason Merrill
|
| 181 |
|
|
|
| 182 |
|
|
PR c++/20681
|
| 183 |
|
|
* semantics.c (finish_break_stmt): Avoid adding an unreachable
|
| 184 |
|
|
BREAK_STMT.
|
| 185 |
|
|
|
| 186 |
|
|
PR c++/51813
|
| 187 |
|
|
* decl2.c (constrain_visibility): Clear DECL_VISIBILITY_SPECIFIED
|
| 188 |
|
|
when reducing the visibility.
|
| 189 |
|
|
|
| 190 |
|
|
PR c++/51620
|
| 191 |
|
|
* class.c (build_vtbl_initializer): Use __cxa_deleted_virtual.
|
| 192 |
|
|
|
| 193 |
|
|
2012-01-12 Jason Merrill
|
| 194 |
|
|
|
| 195 |
|
|
PR c++/51714
|
| 196 |
|
|
* pt.c (value_dependent_expression_p): Treat STMT_EXPR as
|
| 197 |
|
|
value-dependent.
|
| 198 |
|
|
|
| 199 |
|
|
2012-01-13 Dodji Seketeli
|
| 200 |
|
|
|
| 201 |
|
|
PR c++/51633
|
| 202 |
|
|
* semantics.c (cp_parser_ctor_initializer_opt_and_function_body):
|
| 203 |
|
|
Set the pointer to the last block of the constructor to the
|
| 204 |
|
|
current statement.
|
| 205 |
|
|
(build_constexpr_constructor_member_initializers): Get
|
| 206 |
|
|
build_data_member_initialization a chance to deal with more
|
| 207 |
|
|
statements before we choke.
|
| 208 |
|
|
|
| 209 |
|
|
2012-01-12 Jason Merrill
|
| 210 |
|
|
|
| 211 |
|
|
PR c++/48051
|
| 212 |
|
|
* mangle.c (write_expression): Mangle BASELINK scope if
|
| 213 |
|
|
BASELINK_QUALIFIED_P.
|
| 214 |
|
|
* search.c (adjust_result_of_qualified_name_lookup): Set
|
| 215 |
|
|
BASELINK_QUALIFIED_P.
|
| 216 |
|
|
* tree.c (cp_tree_equal) [BASELINK]: Compare BASELINK_QUALIFIED_P.
|
| 217 |
|
|
* parser.c (cp_parser_postfix_dot_deref_expression): Don't call
|
| 218 |
|
|
adjust_result_of_qualified_name_lookup for non-qualified names.
|
| 219 |
|
|
|
| 220 |
|
|
PR c++/51403
|
| 221 |
|
|
* pt.c (unify): Handle error_mark_node.
|
| 222 |
|
|
|
| 223 |
|
|
2012-01-11 Jason Merrill
|
| 224 |
|
|
|
| 225 |
|
|
PR c++/51565
|
| 226 |
|
|
* call.c (standard_conversion): For ptrmemfuncs, compare the
|
| 227 |
|
|
static_fn_types.
|
| 228 |
|
|
|
| 229 |
|
|
PR c++/51818
|
| 230 |
|
|
* mangle.c (find_substitution): A type is only a substitution
|
| 231 |
|
|
match if we're looking for a type.
|
| 232 |
|
|
(write_nested_name): Use decl_mangling_context.
|
| 233 |
|
|
|
| 234 |
|
|
* decl.c (decls_match): Assert that the arguments are decls.
|
| 235 |
|
|
|
| 236 |
|
|
PR c++/51613
|
| 237 |
|
|
* pt.c (resolve_overloaded_unification): Compare types with
|
| 238 |
|
|
same_type_p, not decls_match.
|
| 239 |
|
|
|
| 240 |
|
|
2012-01-10 Jason Merrill
|
| 241 |
|
|
|
| 242 |
|
|
PR c++/51614
|
| 243 |
|
|
* class.c (build_base_path): Diagnose ambiguous base.
|
| 244 |
|
|
|
| 245 |
|
|
PR c++/51433
|
| 246 |
|
|
* semantics.c (cxx_eval_call_expression): Always retry previously
|
| 247 |
|
|
non-constant expressions.
|
| 248 |
|
|
|
| 249 |
|
|
2012-01-06 Jason Merrill
|
| 250 |
|
|
|
| 251 |
|
|
DR 686
|
| 252 |
|
|
PR c++/47450
|
| 253 |
|
|
* parser.c (cp_parser_new_expression): Set
|
| 254 |
|
|
type_definition_forbidden_message.
|
| 255 |
|
|
|
| 256 |
|
|
PR c++/6057
|
| 257 |
|
|
PR c++/48051
|
| 258 |
|
|
PR c++/50855
|
| 259 |
|
|
PR c++/51322
|
| 260 |
|
|
* mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR,
|
| 261 |
|
|
THROW_EXPR, CONSTRUCTOR, OVERLOAD. Fix PREINCREMENT_EXPR and
|
| 262 |
|
|
PREDECREMENT_EXPR.
|
| 263 |
|
|
(write_template_arg): Fix mangling of class-scope functions and
|
| 264 |
|
|
argument packs.
|
| 265 |
|
|
(mangle_decl): Update suggested -fabi-version argument.
|
| 266 |
|
|
* operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR,
|
| 267 |
|
|
DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR.
|
| 268 |
|
|
* tree.c (dependent_name): No longer static.
|
| 269 |
|
|
* cp-tree.h: Declare it.
|
| 270 |
|
|
* pt.c (unify): Defer handling of unconverted functions.
|
| 271 |
|
|
|
| 272 |
|
|
* mangle.c (mangle_decl): Don't generate mangling aliases
|
| 273 |
|
|
for maybe-in-charge [cd]tors.
|
| 274 |
|
|
|
| 275 |
|
|
* error.c (dump_expr): Print type of CONSTRUCTOR.
|
| 276 |
|
|
|
| 277 |
|
|
2012-01-05 Dodji Seketeli
|
| 278 |
|
|
|
| 279 |
|
|
PR c++/51541
|
| 280 |
|
|
* parser.c (cp_parser_alias_declaration): Get out early upon
|
| 281 |
|
|
errors in the identifier or the attributes.
|
| 282 |
|
|
|
| 283 |
|
|
2012-01-04 Paolo Carlini
|
| 284 |
|
|
|
| 285 |
|
|
PR c++/51064
|
| 286 |
|
|
* pt.c (tsubst_copy_and_build): Maybe set TREE_NO_WARNING on
|
| 287 |
|
|
the tree returned by build_x_binary_op.
|
| 288 |
|
|
|
| 289 |
|
|
2012-01-03 Paolo Carlini
|
| 290 |
|
|
|
| 291 |
|
|
PR c++/51738
|
| 292 |
|
|
* parser.c (cp_parser_postfix_open_square_expression): Handle
|
| 293 |
|
|
postfix-expression [ braced-init-list ].
|
| 294 |
|
|
|
| 295 |
|
|
2012-01-03 Paolo Carlini
|
| 296 |
|
|
|
| 297 |
|
|
PR c++/29273
|
| 298 |
|
|
* rtti.c (build_dynamic_cast_1): In case of T a pointer type,
|
| 299 |
|
|
call decay_conversion on v.
|
| 300 |
|
|
|
| 301 |
|
|
2012-01-03 Paolo Carlini
|
| 302 |
|
|
|
| 303 |
|
|
PR c++/15867
|
| 304 |
|
|
* decl.c (duplicate_decls): With -Wredundant-decls don't warn for
|
| 305 |
|
|
declaration followed by specialization.
|
| 306 |
|
|
|
| 307 |
|
|
2012-01-03 Jakub Jelinek
|
| 308 |
|
|
|
| 309 |
|
|
PR c++/51669
|
| 310 |
|
|
* semantics.c (finish_omp_clauses): Call fold_build_cleanup_point_expr
|
| 311 |
|
|
on OMP_CLAUSE_{IF,FINAL,NUM_THREADS,SCHEDULE_CHUNK}_EXPR.
|
| 312 |
|
|
|
| 313 |
|
|
2012-01-02 Jason Merrill
|
| 314 |
|
|
|
| 315 |
|
|
DR 1359
|
| 316 |
|
|
PR c++/51675
|
| 317 |
|
|
* method.c (walk_field_subobs): Don't check for uninitialized
|
| 318 |
|
|
fields in a union.
|
| 319 |
|
|
(synthesized_method_walk): Check here.
|
| 320 |
|
|
|
| 321 |
|
|
DR 325
|
| 322 |
|
|
PR c++/51666
|
| 323 |
|
|
* parser.c (cp_parser_cache_defarg): Split out...
|
| 324 |
|
|
(cp_parser_parameter_declaration): ...from here.
|
| 325 |
|
|
(cp_parser_save_nsdmi): Use it.
|
| 326 |
|
|
(cp_parser_cache_group): Remove CPP_COMMA support.
|
| 327 |
|
|
|
| 328 |
|
|
2012-01-02 Dodji Seketeli
|
| 329 |
|
|
|
| 330 |
|
|
PR c++/51462
|
| 331 |
|
|
* semantics.c (cx_check_missing_mem_inits): Don't assert in case
|
| 332 |
|
|
of error.
|
| 333 |
|
|
|
| 334 |
|
|
2012-01-02 Paolo Carlini
|
| 335 |
|
|
|
| 336 |
|
|
PR c++/20140
|
| 337 |
|
|
* typeck2.c (digest_init_r): Use copy_init when initializing
|
| 338 |
|
|
an array of chars.
|
| 339 |
|
|
|
| 340 |
|
|
2012-01-01 Paolo Carlini
|
| 341 |
|
|
|
| 342 |
|
|
PR c++/16603
|
| 343 |
|
|
* decl.c (build_enumerator): Don't call perform_integral_promotions
|
| 344 |
|
|
on the value.
|
| 345 |
|
|
|
| 346 |
|
|
2012-01-01 Paolo Carlini
|
| 347 |
|
|
|
| 348 |
|
|
PR c++/51379
|
| 349 |
|
|
* typeck.c (build_reinterpret_cast_1): Implement resolution of
|
| 350 |
|
|
DR 799.
|
| 351 |
|
|
|
| 352 |
|
|
2012-01-01 Fabien ChĂȘne
|
| 353 |
|
|
|
| 354 |
|
|
* parser.c (cp_parser_using_declaration): Add a warning about
|
| 355 |
|
|
deprecated access declarations when no errors were encountered
|
| 356 |
|
|
while parsing the access declaration. Save the first token in
|
| 357 |
|
|
order to emit the warning at the right place.
|
| 358 |
|
|
|
| 359 |
|
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
| 360 |
|
|
|
| 361 |
|
|
Copying and distribution of this file, with or without modification,
|
| 362 |
|
|
are permitted in any medium without royalty provided the copyright
|
| 363 |
|
|
notice and this notice are preserved.
|