]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/cp/ChangeLog
Add C++ attribute abi_tag and -Wabi-tag option.
[thirdparty/gcc.git] / gcc / cp / ChangeLog
1 2012-11-09 Jason Merrill <jason@redhat.com>
2
3 * tree.c (cxx_attribute_table): Add abi_tag attribute.
4 (check_abi_tag_redeclaration, handle_abi_tag_attribute): New.
5 * class.c (find_abi_tags_r, check_abi_tags): New.
6 (check_bases, check_field_decl): Call check_abi_tags.
7 * decl.c (redeclaration_error_message): Call
8 check_abi_tag_redeclaration.
9 * mangle.c (tree_string_cmp, write_abi_tags): New.
10 (write_unqualified_name): Call write_abi_tags.
11
12 2012-11-07 Paolo Carlini <paolo.carlini@oracle.com>
13
14 PR c++/55226
15 Revert:
16 2012-10-23 Paolo Carlini <paolo.carlini@oracle.com>
17
18 PR c++/54922
19 * semantics.c (cx_check_missing_mem_inits): Handle anonymous union
20 members.
21
22 2012-11-07 Florian Weimer <fweimer@redhat.com>
23
24 * init.c (build_new_1): Do not check for arithmetic overflow if
25 inner array size is 1.
26
27 2012-11-05 Sriraman Tallam <tmsriram@google.com>
28
29 * class.c (add_method): Change assembler names of function versions.
30 (mark_versions_used): New static function.
31 (resolve_address_of_overloaded_function): Create dispatcher decl and
32 return address of dispatcher instead.
33 * decl.c (decls_match): Make decls unmatched for versioned
34 functions.
35 (duplicate_decls): Remove ambiguity for versioned functions.
36 Delete versioned function data for merged decls.
37 * decl2.c (check_classfn): Check attributes of versioned functions
38 for match.
39 * call.c (get_function_version_dispatcher): New function.
40 (mark_versions_used): New static function.
41 (build_over_call): Make calls to multiversioned functions
42 to call the dispatcher.
43 (joust): For calls to multi-versioned functions, make the most
44 specialized function version win.
45
46 2012-10-31 Lawrence Crowl <crowl@google.com>
47
48 * decl2.c (var_finalized_p): Rename varpool_node to
49 varpool_node_for_decl.
50 (maybe_emit_vtables): Likewise.
51
52 2012-10-31 Paolo Carlini <paolo.carlini@oracle.com>
53
54 PR c++/54583
55 * tree.c (build_cplus_array_type): Set TREE_NO_WARNING on the
56 TYPE_SIZE of VLAs.
57
58 2012-10-31 Dodji Seketeli <dodji@redhat.com>
59
60 PR c++/54955
61 * parser.c (cp_nth_tokens_can_be_std_attribute_p): Recognize the
62 'Alignas' keyword as the beginning of a c++11 attribute specifier.
63 Update the comment of the function.
64 (cp_next_tokens_can_be_gnu_attribute_p): Update the comment of the
65 function.
66
67 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
68
69 PR c++/54930
70 * typeck.c (maybe_warn_about_returning_address_of_local): Use
71 OPT_Wreturn_local_addr.
72
73 2012-10-26 Jakub Jelinek <jakub@redhat.com>
74
75 PR c++/55081
76 * typeck2.c (store_init_value): Call fold_non_dependent_expr
77 and maybe_constant_init even for C++98.
78
79 2012-10-26 Paolo Carlini <paolo.carlini@oracle.com>
80
81 PR c++/54984
82 * init.c (build_new): Don't turn a null *init into a pointer to
83 empty vector orig_init.
84
85 2012-10-25 Paolo Carlini <paolo.carlini@oracle.com>
86
87 PR c++/53761
88 * class.c (finish_struct_1): Reject aggregates decorated with
89 __transparent_union__ which cannot be made transparent because
90 the type of the first field has a different ABI from the class
91 overall.
92
93 2012-10-25 Jason Merrill <jason@redhat.com>
94
95 Core 1402
96 * call.c (joust): An implicitly deleted move function is
97 worse than any non-deleted function.
98 * method.c (process_subob_fn): No special rules for move.
99 (synthesized_method_walk, implicitly_declare_fn): Likewise.
100 Warn about virtual base with non-trivial move assignment.
101 * cp-tree.h (struct lang_decl_fn): Remove suppress_implicit_decl.
102 (FNDECL_SUPPRESS_IMPLICIT_DECL): Remove.
103
104 * semantics.c (finish_omp_threadprivate): Call complete_type.
105
106 * class.c (one_inherited_ctor): Warn about variadic inherited ctor.
107
108 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
109
110 PR c++/54427
111 * typeck.c (build_x_conditional_expr): Handle VEC_COND_EXPR.
112 * call.c (build_conditional_expr_1): Likewise.
113
114 2012-10-25 Paolo Carlini <paolo.carlini@oracle.com>
115
116 PR c++/34892
117 * parser.c (cp_parser_template_parameter): When
118 cp_parser_parameter_declaration parsed a default argument don't
119 see if *is_parameter_pack needs setting.
120
121 2012-10-23 Paolo Carlini <paolo.carlini@oracle.com>
122
123 PR c++/54922
124 * semantics.c (cx_check_missing_mem_inits): Handle anonymous union
125 members.
126
127 2012-10-23 Jakub Jelinek <jakub@redhat.com>
128
129 PR c++/54844
130 * pt.c (tsubst_copy, tsubst_copy_and_build) <case SIZEOF_EXPR>: Use
131 tsubst instead of tsubst_copy* on types.
132
133 PR c++/54988
134 * decl2.c (cplus_decl_attributes): Don't return early
135 if attributes is NULL.
136
137 2012-10-18 Paolo Carlini <paolo.carlini@oracle.com>
138
139 PR c++/54501
140 * decl.c (reshape_init_array_1): Avoid infinite loops.
141
142 2012-10-15 Alexandre Oliva <aoliva@redhat.com>
143 Paolo Carlini <paolo.carlini@oracle.com>
144
145 PR c++/17805
146 * call.c (build_new_op_1): Filter out operator functions that don't
147 satisfy enum-conversion match requirements.
148
149 2012-10-15 Paolo Carlini <paolo.carlini@oracle.com>
150
151 PR c++/50080 (again)
152 * parser.c (cp_parser_optional_template_keyword): When -pedantic
153 and C++98 mode restore pre-Core/468 behavior.
154
155 2012-10-15 Paolo Carlini <paolo.carlini@oracle.com>
156
157 PR c++/50080
158 * parser.c (cp_parser_optional_template_keyword): Implement
159 Core/468, allow outside template.
160
161 2012-10-14 Jason Merrill <jason@redhat.com>
162 Ville Voutilainen <ville.voutilainen@gmail.com>
163
164 Implement C++11 inheriting constructors.
165 * cp-tree.h (cpp0x_warn_str): Add CPP0X_INHERITING_CTORS.
166 (DECL_INHERITED_CTOR_BASE, SET_DECL_INHERITED_CTOR_BASE): New.
167 (special_function_kind): Add sfk_inheriting_constructor.
168 * class.c (add_method): An inheriting ctor is hidden by a
169 user-declared one.
170 (one_inheriting_sig, one_inherited_ctor): New.
171 (add_implicitly_declared_members): Handle inheriting ctors.
172 * error.c (maybe_warn_cpp0x): Handle CPP0X_INHERITING_CTORS.
173 * init.c (emit_mem_initializers): Don't set LOOKUP_DEFAULTED
174 for an inheriting constructor.
175 * method.c (type_has_trivial_fn): Handle sfk_inheriting_constructor.
176 (type_set_nontrivial_flag): Likewise.
177 (add_one_base_init): Split out from...
178 (do_build_copy_constructor): ...here. Handle inheriting constructors.
179 (locate_fn_flags): Handle a list of arg types.
180 (synthesized_method_walk): Handle inheriting constructors.
181 (maybe_explain_implicit_delete): Likewise.
182 (deduce_inheriting_ctor): New.
183 (implicitly_declare_fn): Handle inheriting constructors.
184 * name-lookup.c (push_class_level_binding_1): An inheriting constructor
185 does not declare the base's name.
186 (do_class_using_decl): Allow inheriting constructors.
187 * pt.c (template_parms_to_args): Split from current_template_args.
188 (add_inherited_template_parms): New.
189 (tsubst_decl): Handle inheriting constructors.
190 * tree.c (special_function_p): Handle inheriting constructors.
191
192 2012-10-12 Jakub Jelinek <jakub@redhat.com>
193
194 PR c/54381
195 * semantics.c (finish_call_expr): Pass array of 3 sizeof_arg
196 trees and locs (corresponding to first 3 arguments) to
197 sizeof_pointer_memaccess_warning.
198
199 2012-10-12 Paolo Carlini <paolo.carlini@oracle.com>
200
201 PR c++/24449
202 * decl.c (grokfndecl): When checking for ::main declarations
203 use PROCESSING_REAL_TEMPLATE_DECL_P().
204
205 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
206
207 PR c++/53055
208 * call.c (build_new_op_1): Pass RO_ARROW_STAR to cp_build_indirect_ref.
209 * typeck.c (cp_build_indirect_ref): Handle RO_ARROW_STAR.
210
211 2012-10-11 Jason Merrill <jason@redhat.com>
212
213 * cp-tree.h (DECL_THUNKS): NULL_TREE for non-virtual functions.
214 (SET_DECL_THUNKS): New.
215 * decl.c (duplicate_decls): Adjust.
216 * method.c (make_thunk): Adjust.
217
218 * decl.c (grokdeclarator): Set DECL_GNU_TLS_P for static data
219 members, too.
220
221 2012-10-09 Dodji Seketeli <dodji@redhat.com>
222
223 PR c++/53540 - using fails to be equivalent to typedef
224 * cp-tree.h (TYPE_TEMPLATE_INFO): For an alias that is not an
225 instance of alias template, don't look for its TEMPLATE_INFO in
226 its declaration.
227 (alias_template_specialization_p): Take const_tree.
228 * pt.c (alias_template_specialization_p): Take a const_tree.
229 Don't call primary_template_instantiation_p.
230 (primary_template_instantiation_p): Call
231 alias_template_specialization_p.
232
233 2012-10-10 Dodji Seketeli <dodji@redhat.com>
234
235 * parser (cp_parser_statement): Parse c++11 attributes
236 tentatively.
237 (cp_parser_std_attribute_spec_seq): Do not warn too early about
238 using c++11 attributes in non c++11 mode.
239
240 2012-10-10 Dehao Chen <dehao@google.com>
241
242 * cp-gimplify.c (cp_genericize_r): Set location for TRY expr.
243
244 2012-10-09 Lawrence Crowl <crowl@google.com>
245
246 * Make-lang.in (class.o): Add dependence on hash-table.h.
247 (tree.o): Likewise.
248 (semantics.o): Likewise.
249 * class.c (fixed_type_or_null): Change to new type-safe hash table.
250 * tree.c (verify_stmt_tree): Likewise.
251 (verify_stmt_tree_r): Likewise.
252 * semantics.c (struct nrv_data): Likewise.
253
254 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
255
256 PR c++/54194
257 * typeck.c (build_x_binary_op): Update warn_about_parentheses call.
258 * parser.c (cp_parser_binary_expression): Use SET_EXPR_LOCATION
259 on current.lhs.
260
261 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
262
263 PR c++/54427
264 * typeck.c (cp_build_binary_op): Handle mixed scalar-vector
265 operations.
266 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise.
267
268 2012-10-08 Jakub Jelinek <jakub@redhat.com>
269
270 PR c++/54858
271 * tree.c (cp_tree_equal): Handle FIELD_DECL.
272
273 2012-10-08 Jason Merrill <jason@redhat.com>
274
275 Allow dynamic initialization of thread_locals.
276 * decl.c: Define tls_aggregates.
277 (expand_static_init): Remove sorry. Add to tls_aggregates.
278 * cp-tree.h: Declare tls_aggregates.
279 * call.c (set_up_extended_ref_temp): Add to tls_aggregates.
280 * decl2.c (var_needs_tls_wrapper): New.
281 (var_defined_without_dynamic_init): New.
282 (get_tls_init_fn, get_tls_wrapper_fn): New.
283 (generate_tls_wrapper, handle_tls_init): New.
284 (cp_write_global_declarations): Call handle_tls_init and
285 enerate_tls_wrapper.
286 * mangle.c (write_guarded_var_name): Split out from..
287 (mangle_guard_variable): ...here.
288 (mangle_tls_init_fn, mangle_tls_wrapper_fn): Use it.
289 (decl_tls_wrapper_p): New.
290 * semantics.c (finish_id_expression): Replace use of thread_local
291 variable with a call to its wrapper.
292
293 * decl.c (get_thread_atexit_node): New.
294 (register_dtor_fn): Use it for TLS.
295
296 Partial implementation of C++11 thread_local.
297 * decl.c (cp_finish_decl): Remove errors about non-trivial
298 initialization and destruction of TLS variables.
299 (register_dtor_fn): Add sorry about TLS variables.
300 (expand_static_init): Add sorry about non-local TLS variables,
301 or error with __thread.
302 Don't emit thread-safety guards for local TLS variables.
303 (grokdeclarator): thread_local in a function implies static.
304 * decl.h: Adjust prototype.
305 * decl2.c (get_guard): Copy DECL_TLS_MODEL.
306 * parser.c (cp_parser_set_storage_class, cp_parser_set_decl_spec_type)
307 (set_and_check_decl_spec_loc): Take the token rather than the location.
308 Distinguish between __thread and thread_local.
309 (cp_parser_set_storage_class): Don't complain about thread_local before
310 extern/static.
311 (token_is__thread): New.
312 * call.c (make_temporary_var_for_ref_to_temp): Handle TLS.
313 * cp-tree.h (DECL_GNU_TLS_P): New.
314 (cp_decl_specifier_seq): Add gnu_thread_keyword_p.
315
316 2012-10-08 Dodji Seketeli <dodji@redhat.com>
317
318 PR c++/53528 C++11 attribute support
319 * cp-tree.h (enum cpp0x_warn_str::CPP0X_ATTRIBUTES): New member.
320 (enum cp_decl_spec::ds_std_attribute): New enumerator.
321 (struct cp_decl_specifier_seq::std_attributes): New field.
322 (cxx_alignas_expr, warn_misplaced_attr_for_class_type): Declare
323 new functions.
324 (check_tag_decl): Take an extra parameter for explicit
325 instantiations.
326 * decl.c (warn_misplaced_attr_for_class_type): Extract from ...
327 (check_tag_decl): ... here. Add check for c++11 attributes being
328 applied to an explicit instantiation. Take an extra parameter for
329 explicit instantiations.
330 (grokdeclarator): Make sure a c++11 attribute after an array
331 declarator appertains to the array, an attribute after a function
332 declarator appertains to the function type, an attribute after a
333 declarator-id appertains to the entity being declared, and an
334 attribute after a pointer declarator appertain to the pointer.
335 * decl2.c (is_late_template_attribute): Use get_attribute_name.
336 * error.c (maybe_warn_cpp0x): Support
337 CPP0X_GENERALIZED_ATTRIBUTES.
338 * parser.c (cp_next_tokens_can_be_attribute_p)
339 (cp_next_tokens_can_be_gnu_attribute_p)
340 (cp_next_tokens_can_be_std_attribute_p)
341 (cp_nth_tokens_can_be_attribute_p)
342 (cp_nth_tokens_can_be_gnu_attribute_p)
343 (cp_nth_tokens_can_be_std_attribute_p)
344 (cp_parser_gnu_attribute_list, cp_parser_std_attribute)
345 (cp_parser_std_attribute_spec, cp_parser_std_attribute_spec_seq)
346 (cp_parser_attributes_opt, cp_parser_std_attribute_list): New
347 static functions.
348 (cp_parser_gnu_attributes_opt): Replace cp_parser_attributes_opt.
349 (cp_parser_gnu_attribute_list): Replace cp_parser_attribute_list.
350 (cp_parser_postfix_expression): Disallow "[[" tokens here.
351 (cp_parser_label_for_labeled_statement): Use take an extra
352 parameter for attributes.
353 (cp_parser_block_declaration): Use
354 cp_nth_tokens_can_be_std_attribute_p here.
355 (cp_parser_decl_specifier_seq): Likewise. Store C++11 attributes
356 that appears in in decl specifiers in cp_decl_specifier_seq::std_attributes.
357 declaration. Emit proper warning about misplaced c++11 attributes
358 for class type.
359 (cp_parser_explicit_instantiation): Adjust call to check_tag_decl.
360 (cp_parser_init_declarator): Parsing attributes here is no more a
361 GNU extension in c++-11.
362 (cp_parser_type_specifier_seq): Use
363 cp_next_tokens_can_be_attribute_p.
364 (cp_parser_direct_declarator): Likewise. Hang c++11 attributes
365 following the declarator to its syntactic construct. It'll later
366 be applied to the proper appertaining entity by grokdeclarator.
367 (cp_parser_ptr_operator): Likewise.
368 (make_declarator): Initialize cp_declarator::std_attribute.
369 (make_pointer_declarator, make_reference_declarator)
370 (make_ptrmem_declarator, cp_parser_make_indirect_declarator): Take
371 attributes that appertain to the pointer/reference in argument.
372 (cp_parser_ptr_operator): Take an out parameter for c++11
373 attributes. Update comments.
374 (cp_parser_new_declarator_opt)
375 (cp_parser_conversion_declarator_opt): Adjust.
376 (cp_parser_declarator): Likewise. Handle C++11 attributes.
377 Rename attributes to gnu_attribute for better legibility.
378 (cp_parser_simple_declaration): Update comment.
379 (cp_parser_class_specifier_1): Parse GNU attributes specifically
380 (cp_parser_enum_specifier): Accept only gnu attributes after the
381 specifier.
382 (cp_parser_member_declaration): Don't clear attributes -- intended
383 for the entity being declared -- too early because check_tag_decl
384 needs them.
385 (cp_parser_statement): Update comment. Parse optional c++11
386 attributes at the beginning of the relevant kind of statements and
387 ignore them, for now, unless when calling
388 cp_parser_label_for_labeled_statement.
389 (cp_parser_label_for_labeled_statement): Take c++11 attributes
390 in parameter.
391 * semantics.c (potential_constant_expression_1): Likewise.
392 * typeck.c (fundamental_alignment_p, cxx_alignas_expr): New public
393 functions.
394
395 2012-10-07 Paolo Carlini <paolo.carlini@oracle.com>
396
397 * pt.c (fold_non_dependent_expr_sfinae): Remove static specifier.
398 (tsubst_copy_and_build): Use get_target_expr_sfinae.
399 * call.c (build_conditional_expr_1, convert_like_real): Likewise.
400 * cvt.c (build_up_reference): Likewise.
401 (ocp_convert): Use abstract_virtuals_error_sfinae.
402 (build_up_reference): Propagate complain to cp_build_addr_expr.
403 * decl.c (compute_array_index_type): Use fold_non_dependent_expr_sfinae.
404 * cp-tree.h: Update declarations.
405
406 * cvt.c (build_expr_type_conversion): Tidy.
407
408 * tree.c (stabilize_aggr_init): Change to static.
409
410 2012-10-07 Paolo Carlini <paolo.carlini@oracle.com>
411
412 PR c++/51422
413 * semantics.c (is_normal_capture_proxy): Return true for
414 error_mark_node as DECL_VALUE_EXPR.
415
416 2012-10-05 Jakub Jelinek <jakub@redhat.com>
417
418 * cp-tree.h (SIZEOF_EXPR_TYPE_P): Define.
419 * tree.c (cp_tree_equal): Handle SIZEOF_EXPR with
420 SIZEOF_EXPR_TYPE_P.
421 * mangle.c (write_expression): Likewise.
422 * cxx-pretty-print.c (pp_cxx_unary_expression): Likewise.
423 * error.c (dump_expr): Likewise.
424 * parser.c (cp_parser_unary_expression): For sizeof call
425 cxx_sizeof_or_alignof_{type,expr} just for diagnostics and
426 return SIZEOF_EXPR with the operand.
427 * pt.c (tsubst_copy, tsubst_copy_and_build): For SIZEOF_EXPR,
428 call cxx_sizeof_or_alignof_{type,expr} for diagnostics, but
429 return SIZEOF_EXPR with tsubsted operand.
430 (value_dependent_expression_p): Handle SIZEOF_EXPR with
431 SIZEOF_EXPR_TYPE_P.
432 (instantiation_dependent_r): Likewise.
433 * call.c (null_ptr_cst_p): Call maybe_constant_value for C++98.
434 * semantics.c (finish_call_expr): Call
435 sizeof_pointer_memaccess_warning if needed.
436 (cxx_eval_constant_expression): Handle SIZEOF_EXPR.
437 (potential_constant_expression_1): Remove early exit for
438 C++98. Handle PROPERTY_REF.
439 * decl.c (duplicate_decls): When redeclaring a builtin function,
440 keep the merged decl builtin also if newdecl is a gnu_inline
441 inline definition.
442 (fold_sizeof_expr_r): New function.
443 (compute_array_index_type): Fold SIZEOF_EXPRs in itype.
444 * cp-gimplify.c (cp_genericize_r): Fold SIZEOF_EXPR.
445 * typeck.c (cp_build_binary_op): For warn_for_sign_compare
446 try harder using maybe_constant_value to get INTEGER_CSTs.
447
448 * decl.c (stabilize_vla_size): Call pointer_set_destroy
449 at the end.
450
451 2012-10-04 Arnaud Charlet <charlet@adacore.com>
452
453 * decl2.c (cp_write_global_declarations): Fix handling of
454 -fdump-ada-spec*.
455
456 2012-10-03 Jakub Jelinek <jakub@redhat.com>
457
458 PR c++/54777
459 * semantics.c (cxx_eval_constant_expression) <case COMPOUND_EXPR>: If
460 not ignoring the second operand, pass the original second operand
461 and not one with stripped nops to cxx_eval_constant_expression.
462
463 2012-10-01 Jason Merrill <jason@redhat.com>
464
465 * decl.c (check_initializer): Set DECL_NONTRIVIALLY_INITIALIZED_P
466 for a constructor call.
467 (decl_jump_unsafe): So don't bother checking
468 type_has_nontrivial_default_init.
469 * call.c (set_up_extended_ref_temp): Set
470 DECL_NONTRIVIALLY_INITIALIZED_P.
471
472 * cp-tree.h (TYPE_FUNCTION_OR_TEMPLATE_DECL_CHECK): New.
473 (DECL_FRIEND_P, DECL_ANTICIPATED): Use it.
474 (TYPE_FUNCTION_OR_TEMPLATE_DECL_P): New.
475 * name-lookup.c (hidden_name_p): Use it.
476
477 * cp-tree.h (DECL_PRETTY_FUNCTION_P): Just look at the name.
478 * decl.c (cp_make_fname_decl): Adjust.
479
480 2012-09-30 Sharad Singhai <singhai@google.com>
481
482 * decl2.c (cp_write_global_declarations): Use a different method
483 to determine if the dump has ben initialized.
484
485 2012-09-29 Paolo Carlini <paolo.carlini@oracle.com>
486
487 PR c++/54738
488 * decl2.c (build_offset_ref_call_from_tree): Add tsubst_flags_t
489 parameter.
490 * pt.c (tsubst_copy_and_build): Adjust.
491 * parser.c (cp_parser_postfix_expression): Likewise.
492 * cp-tree.h: Adjust declaration.
493
494 2012-09-28 Dodji Seketeli <dodji@redhat.com>
495
496 PR c++/54372 - unused attribute inactive on dependant entities
497 * decl2.c (is_late_template_attribute): "unused" attribute is to
498 be applied at compile time.
499
500 2012-09-25 Dodji Seketeli <dodji@redhat.com>
501
502 PR c++/29028 - Missed unused warning on using declaration
503 * decl.c (poplevel<warn_unused*>): Do not forget that some local
504 bindings are represented by a TREE_LIST.
505
506 2012-09-25 Dodji Seketeli <dodji@redhat.com>
507
508 PR c++/53551 - -Wunused-local-typedefs misses uses
509 * decl.c (make_typename_type): Record the use of typedefs.
510
511 2012-09-27 Jakub Jelinek <jakub@redhat.com>
512
513 * init.c (build_new_1): Don't test TREE_CONSTANT
514 of INTEGER_CST.
515
516 2012-09-25 Paolo Carlini <paolo.carlini@oracle.com>
517
518 PR c++/54526
519 * parser.c (cp_parser_template_id): In C++11 mode simply accept
520 X<::A>.
521
522 2012-09-25 Zhenqiang Chen <zhenqiang.chen@linaro.org>
523
524 PR c++/50970
525 * typeck.c (cp_build_binary_op): Check side effects before generating
526 pfn and delta related expressions.
527
528 2012-09-24 Lawrence Crowl <crowl@google.com>
529
530 * init.c (build_new_1): Change to new double_int API.
531 * decl.c (build_enumerator): Likewise.
532 * typeck2.c (process_init_constructor_array): Likewise.
533 * mangle.c (write_array_type): Likewise.
534
535 2012-09-24 Paolo Carlini <paolo.carlini@oracle.com>
536
537 PR c++/50828
538 * error.c (dump_function_decl): Strip TFF_TEMPLATE_NAME from flags
539 at the outset.
540
541 2012-09-24 Jason Merrill <jason@redhat.com>
542
543 * decl.c (get_atexit_node): Remove dead code.
544
545 * Make-lang.in (cp/parser.o): Depend on decl.h.
546
547 2012-09-20 Paolo Carlini <paolo.carlini@oracle.com>
548
549 PR c++/52432
550 * pt.c (tsubst_copy_and_build): If tf_error is not set in the complain
551 argument don't call unqualified_name_lookup_error.
552
553 2012-09-19 Marc Glisse <marc.glisse@inria.fr>
554
555 PR c++/54581
556 * semantics.c (finish_decltype_type): Make vectors not opaque.
557
558 2012-09-17 Jason Merrill <jason@redhat.com>
559
560 PR c++/54575
561 * pt.c (instantiate_alias_template): New.
562 (tsubst): Use it.
563 (push_access_scope): Allow TYPE_DECL.
564
565 2012-09-14 Jason Merrill <jason@redhat.com>
566
567 PR c++/53661
568 * typeck2.c (check_narrowing): Avoid false positives on conversion
569 from enumeral type.
570
571 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
572
573 PR c++/54427
574 * typeck.c (cp_build_binary_op) [LSHIFT_EXPR, RSHIFT_EXPR, EQ_EXPR,
575 NE_EXPR, LE_EXPR, GE_EXPR, LT_EXPR, GT_EXPR]: Handle VECTOR_TYPE.
576
577 2012-09-14 Paolo Carlini <paolo.carlini@oracle.com>
578
579 * decl.c (make_typename_type): Only error out if tf_error is set
580 in complain.
581
582 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
583 Manuel López-Ibåñez <manu@gcc.gnu.org>
584
585 PR c++/53210
586 * init.c (perform_member_init): Use OPT_Winit_self instead of
587 OPT_Wuninitialized.
588
589 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
590
591 * typeck.c (build_indirect_ref, build_function_call,
592 build_function_call_vec, build_binary_op, build_unary_op,
593 build_compound_expr, build_c_cast, build_modify_expr): Remove
594 uses of ATTRIBUTE_UNUSED on the parameters.
595 * class.c (set_linkage_according_to_type, resort_type_method_vec,
596 dfs_find_final_overrider_post, empty_base_at_nonzero_offset_p):
597 Likewise.
598 * decl.c (local_variable_p_walkfn): Likewise.
599 * except.c (wrap_cleanups_r, check_noexcept_r): Likewise.
600 * error.c (find_typenames_r): Likewise.
601 * tree.c (verify_stmt_tree_r, bot_replace,
602 handle_java_interface_attribute, handle_com_interface_attribute,
603 handle_init_priority_attribute, c_register_addr_space): Likewise.
604 * cp-gimplify.c (cxx_omp_clause_default_ctor): Likewise.
605 * cp-lang.c (objcp_tsubst_copy_and_build): Likewise.
606 * pt.c (unify_success, unify_invalid, instantiation_dependent_r):
607 Likewise.
608 * semantics.c (dfs_calculate_bases_pre): Likewise.
609 * decl2.c (fix_temporary_vars_context_r, clear_decl_external):
610 Likewise.
611 * parser.c (cp_lexer_token_at, cp_parser_omp_clause_mergeable,
612 cp_parser_omp_clause_nowait, cp_parser_omp_clause_ordered,
613 cp_parser_omp_clause_untied): Likewise.
614 * mangle.c (write_unnamed_type_name,
615 discriminator_for_string_literal): Likewise.
616 * search.c (dfs_accessible_post, dfs_debug_mark): Likewise.
617 * lex.c (handle_pragma_vtable, handle_pragma_unit,
618 handle_pragma_interface, handle_pragma_implementation,
619 handle_pragma_java_exceptions): Likewise.
620
621 2012-09-13 Jason Merrill <jason@redhat.com>
622
623 PR c++/53839
624 * semantics.c (cxx_eval_indirect_ref): If we aren't looking for an
625 address, make sure the value is constant.
626
627 PR c++/54511
628 * pt.c (tsubst_decl) [VAR_DECL]: Handle DECL_ANON_UNION_VAR_P.
629
630 PR c++/53836
631 * pt.c (value_dependent_expression_p): A TREE_LIST initializer must
632 be dependent.
633
634 2012-09-10 Paolo Carlini <paolo.carlini@oracle.com>
635
636 PR c++/54541
637 PR c++/54542
638 * call.c (build_cxx_call): Add tsubst_flags_t parameter, use
639 require_complete_type_sfinae.
640 (build_op_delete_call, build_over_call): Adjust.
641 * typeck.c (build_x_compound_expr_from_vec): Add tsubst_flags_t
642 parameter.
643 (cp_build_function_call_vec): Adjust.
644 * init.c (build_new_1): Likewise.
645 * rtti.c (throw_bad_cast, throw_bad_typeid, build_dynamic_cast_1):
646 Likewise.
647 * optimize.c (build_delete_destructor_body): Likewise.
648 * cp-tree.h: Adjust declarations.
649
650 * call.c (convert_arg_to_ellipsis): Use require_complete_type_sfinae.
651
652 2012-09-10 Jason Merrill <jason@redhat.com>
653
654 PR c++/54538
655 PR c++/53783
656 * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Go back to using RECUR
657 for LAMBDA_EXPR_EXTRA_SCOPE except for function scope.
658
659 PR c++/54506
660 * decl.c (move_signature_fn_p): Split out from move_fn_p.
661 * method.c (process_subob_fn): Use it.
662 * cp-tree.h: Declare it.
663
664 2012-09-07 Jason Merrill <jason@redhat.com>
665
666 * semantics.c (sort_constexpr_mem_initializers): Tweak.
667
668 2012-09-09 Mark Kettenis <kettenis@openbsd.org>
669
670 * decl.c (reshape_init_class): Avoid dereferencing a
671 past-the-end pointer.
672
673 2012-09-07 Paolo Carlini <paolo.carlini@oracle.com>
674
675 * pt.c (num_template_headers_for_class): Rework per the code
676 inline in cp_parser_check_declarator_template_parameters.
677 * parser.c (cp_parser_check_declarator_template_parameters):
678 Use num_template_headers_for_class.
679
680 2012-09-06 Jason Merrill <jason@redhat.com>
681
682 PR c++/54341
683 PR c++/54253
684 * semantics.c (sort_constexpr_mem_initializers): New.
685 (build_constexpr_constructor_member_initializers): Use it.
686 (cx_check_missing_mem_inits): Skip artificial fields.
687 * init.c (expand_aggr_init_1): Don't zero out a class
688 with no data.
689
690 2012-09-05 Paolo Carlini <paolo.carlini@oracle.com>
691
692 PR c++/54191
693 * search.c (lookup_base): Add tsubst_flags_t parameter.
694 (adjust_result_of_qualified_name_lookup, check_final_overrider):
695 Adjust.
696 * name-lookup.c (do_class_using_decl): Adjust.
697 * typeck2.c (binfo_or_else, build_scoped_ref, build_m_component_ref):
698 Likewise.
699 * cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
700 build_up_reference): Likewise.
701 * rtti.c (build_dynamic_cast_1): Likewise.
702 * tree.c (maybe_dummy_object): Likewise.
703 * call.c (build_conditional_expr_1, build_over_call): Likewise.
704 * cp-tree.h (UNIQUELY_DERIVED_FROM_P, PUBLICLY_UNIQUELY_DERIVED_P):
705 Remove.
706 (enum base_access_flags, ba_quiet): Remove.
707 (uniquely_derived_from_p, publicly_uniquely_derived_p): Declare.
708 * except.c (can_convert_eh): Adjust.
709 * decl.c (grokdeclarator): Likewise.
710 * typeck.c (comp_except_types, build_class_member_access_expr,
711 finish_class_member_access_expr, get_member_function_from_ptrfunc,
712 build_static_cast_1, get_delta_difference_1): Likewise.
713 * class.c (build_base_path, convert_to_base, build_vtbl_ref_1,
714 warn_about_ambiguous_bases): Likewise.
715 (uniquely_derived_from_p, publicly_uniquely_derived_p): Define.
716
717 2012-09-04 Jason Merrill <jason@redhat.com>
718
719 PR c++/54441
720 * decl.c (reshape_init_class): Handle invalid initializer for
721 0-length array member.
722
723 * error.c (dump_type_suffix): Correct handling of 0-length arrays.
724
725 PR c++/54420
726 * cp-tree.h (LAMBDANAME_P): Remove.
727 (LAMBDA_TYPE_P): Check CLASSTYPE_LAMBDA_EXPR instead.
728 * cp-lang.c (cxx_dwarf_name): Likewise.
729 * error.c (dump_aggr_type): Likewise.
730 * semantics.c (begin_lambda_type): Set CLASSTYPE_LAMBDA_EXPR sooner.
731
732 PR c++/54198
733 * decl.c (check_default_argument): Set cp_unevaluated_operand
734 around call to perform_implicit_conversion_flags.
735
736 PR c++/54437
737 PR c++/51213
738 * pt.c (fn_type_unification): Call coerce_template_parms before
739 entering substitution context.
740
741 2012-08-31 Paolo Carlini <paolo.carlini@oracle.com>
742 Jason Merrill <jason@redhat.com>
743
744 PR c++/18747
745 * pt.c (check_template_variable): New.
746 (num_template_headers_for_class): Split out...
747 * decl.c (grokdeclarator): ...from here.
748 (start_decl): Remove redundant diagnostic.
749 * cp-tree.h: Declare them
750 * parser.c (cp_parser_single_declaration): Call check_template_variable.
751
752 2012-08-31 Ollie Wild <aaw@google.com>
753
754 PR c++/54197
755 * call.c (extend_ref_init_temps_1): Handle COMPOUND_EXPR trees.
756
757 2012-08-30 Jason Merrill <jason@redhat.com>
758
759 PR c++/50545
760 PR c++/51222
761 * pt.c (instantiation_dependent_r): New.
762 (instantiation_dependent_expression_p): New.
763 (value_dependent_expression_p): Use it. SCOPE_REF is always dependent.
764 * semantics.c (finish_decltype_type): Use it.
765 * cp-tree.h: Declare it.
766
767 * semantics.c (finish_qualified_id_expr): Handle building up a
768 non-dependent SCOPE_REF here.
769 (finish_id_expression): Not here.
770 * error.c (dump_decl) [SCOPE_REF]: Only pass TFF_UNQUALIFIED_NAME.
771
772 * friend.c (make_friend_class): Handle template template parameters.
773 * parser.c (cp_parser_template_declaration_after_export): Likewise.
774 * pt.c (tsubst_friend_class): Likewise.
775 (instantiate_class_template_1): Likewise
776 * decl.c (check_elaborated_type_specifier): Likewise.
777 (lookup_and_check_tag): Likewise.
778
779 * pt.c (get_class_bindings): Call coerce_template_parms. Add
780 main_tmpl parameter.
781 (more_specialized_class): Add main_tmpl parameter.
782 (most_specialized_class): Adjust calls.
783
784 * decl.c (cp_finish_decl): Check for invalid multiple initializers
785 even if the initializer is dependent.
786
787 * pt.c (instantiate_template_1): Keep processing_template_decl set
788 if there are dependent args.
789
790 2012-08-25 Paolo Carlini <paolo.carlini@oracle.com>
791
792 PR c++/51421
793 * decl2.c (mark_used): Consistently return false after errors
794 about uses before deduction of auto.
795 * semantics.c (finish_id_expression): Check mark_used return
796 value and return error_mark_node in case of failure.
797
798 2012-08-24 Jason Merrill <jason@redhat.com>
799
800 PR c++/51213 (again)
801 * pt.c (deduction_tsubst_fntype): Remove.
802 (fn_type_unification): Check deduction depth and call
803 instantiate_template here. Handle default argument access checks.
804 (determine_specialization): Suppress access control.
805 (tsubst_decl): Check for excessive deduction depth.
806 (recheck_decl_substitution): Make sure access control is on.
807 (type_unification_real): Don't mess with access deferring here.
808 (get_bindings): Adjust for fn_type_unification return type.
809 * call.c (enum rejection_reason_code): Drop rr_template_instantiation.
810 (template_instantiation_rejection): Remove.
811 (struct rejection_reason): Change targs to num_targs.
812 (template_unification_rejection, print_z_candidate): Adjust.
813 (add_template_candidate_real): Adjust for fn_type_unification change.
814 * class.c (resolve_address_of_overloaded_function): Likewise.
815 * cp-tree.h: Adjust declaration.
816
817 * pt.c (tsubst_default_argument): Indicate where the default
818 argument is being instantiated for.
819 (tsubst_expr): Restore previous location.
820 (tsubst_copy_and_build): Set and restore location.
821 * call.c (build_new_method_call_1): Remember location of call.
822 * semantics.c (finish_call_expr): Here too.
823 * parser.c (cp_parser_omp_for_loop): Remember the location of the
824 increment expression.
825
826 * pt.c (resolve_overloaded_unification): Use coerce_template_parms
827 instead of get_bindings.
828 (resolve_nondeduced_context): Likewise.
829
830 * pt.c (register_specialization): Correct argument to
831 check_specialization_namespace.
832 (determine_specialization): Don't consider members of
833 unspecialized types.
834
835 2012-08-23 Jason Merrill <jason@redhat.com>
836
837 * decl.c (compute_array_index_type): Use type_dependent_expression_p.
838
839 2012-08-23 Paolo Carlini <paolo.carlini@oracle.com>
840
841 PR c++/20420
842 * name-lookup.c (supplement_binding_1): Handle specially enums
843 only in class templates.
844 (validate_nonmember_using_decl): Enforce 7.3.3/10 about duplicate
845 using declarations at function scope.
846
847 2012-08-21 Richard Guenther <rguenther@suse.de>
848
849 * cp-tree.h (TREE_INDIRECT_USING): Use TREE_LANG_FLAG_0 accessor.
850 (ATTR_IS_DEPENDENT): Likewise.
851 (ARGUMENT_PACK_INCOMPLETE_P): Use TREE_ADDRESSABLE instead of
852 TREE_LANG_FLAG_0 on TREE_VECs.
853
854 2012-08-20 Florian Weimer <fweimer@redhat.com>
855
856 PR c++/19351
857 * call.c (build_operator_new_call): Add size_check argument and
858 evaluate it.
859 * cp-tree.h (build_operator_new_call): Adjust declaration.
860 * init.c (build_new_1): Compute array size check and apply it.
861
862 2012-08-20 Paolo Carlini <paolo.carlini@oracle.com>
863
864 PR c++/10416
865 * decl.c (poplevel): Check TYPE_HAS_NONTRIVIAL_DESTRUCTOR for
866 Wunused_variable too.
867
868 2012-08-20 Diego Novillo <dnovillo@google.com>
869
870 * decl.c (poplevel): Start TV_NAME_LOOKUP conditionally.
871
872 2012-08-20 Richard Guenther <rguenther@suse.de>
873
874 * name-lookup.c (store_binding_p): New predicate, split out from ...
875 (store_binding): ... here. Always store binding and require
876 target vector with enough space.
877 (store_bindings): Collect to store bindings and reserve space
878 for them, then store them.
879 (store_class_bindings): Likewise.
880
881 2012-08-19 Mikael Morin <mikael@gcc.gnu.org>
882
883 * Make-lang.in: Fix typo.
884
885 2012-08-17 Jakub Jelinek <jakub@redhat.com>
886
887 * cp-tree.def (SIZEOF_EXPR): Move to c-common.def.
888
889 2012-08-14 Diego Novillo <dnovillo@google.com>
890
891 Merge from cxx-conversion branch. Re-write VEC in C++.
892
893 * call.c (add_function_candidate): Remove const qualifier
894 from call to VEC_index.
895
896 2012-08-10 Richard Guenther <rguenther@suse.de>
897
898 * error.c (dump_expr): Handle anonymous SSA names.
899
900 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
901
902 * error.c (print_instantiation_context): Pretty-print a newline before
903 diagnostic_flush_buffer.
904 * cxx-pretty-print.c (pp_cxx_function_definition): Use
905 pp_newline_and_flush instead of separate pp_newline and pp_flush.
906
907 2012-08-06 Dodji Seketeli <dodji@redhat.com>
908
909 Avoid crashing on erroneous static_assert usage
910 * semantics.c (finish_static_assert): Don't crash on erroneous
911 message or condition.
912
913 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
914 Paolo Carlini <paolo.carlini@oracle.com>
915
916 PR c++/54165
917 * typeck.c (build_static_cast_1): Move the conversion to void case
918 before the perform_direct_initialization_if_possible call.
919
920 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
921
922 * pt.c (tsubst_copy_and_build): Handle VECTOR_TYPE like scalars.
923 * cp-tree.h (scalarish_type_p): Declare.
924 * tree.c (scalarish_type_p): Make non-static.
925
926 2012-08-02 Jason Merrill <jason@redhat.com>
927 Paolo Carlini <paolo.carlini@oracle.com>
928
929 PR c++/51213 (again)
930 * pt.c (type_unification_real): Call push_deferring_access_checks /
931 pop_deferring_access_checks around the substitution of default
932 template args.
933 (instantiate_template_1): When the specialization returned by
934 retrieve_specialization has FNDECL_HAS_ACCESS_ERRORS set and we
935 are in a SFINAE context, simply return error_mark_node.
936 * cp-tree.h (FNDECL_RECHECK_ACCESS_P): Rename FNDECL_HAS_ACCESS_ERRORS.
937
938 2012-07-31 Paolo Carlini <paolo.carlini@oracle.com>
939
940 * pt.c (check_default_tmpl_args): Change is_primary and is_partial
941 parameters to bool type, adjust.
942 (push_template_decl_real): Tidy.
943 * parser.c (cp_parser_init_declarator): Adjust.
944 * decl.c (redeclaration_error_message): Likewise.
945 * cp-tree.h (check_default_tmpl_args): Update prototype.
946
947 2012-07-31 Paolo Carlini <paolo.carlini@oracle.com>
948
949 PR c++/53624
950 * pt.c (check_default_tmpl_args): Don't check local types.
951
952 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
953 Paul Brook <paul@codesourcery.com>
954
955 PR target/53633
956 * decl.c (finish_function): Check targetm.warn_func_return.
957
958 2012-07-25 Jason Merrill <jason@redhat.com>
959
960 PR c++/54086
961 * decl.c (grokdeclarator): Allow const and constexpr together.
962
963 PR c++/54020
964 * semantics.c (potential_constant_expression_1) [COND_EXPR]: Call
965 maybe_constant_value.
966
967 * cp-tree.h (tsubst_flags): Remove tf_no_access_control.
968 * call.c (standard_conversion): Don't set it.
969 * class.c (resolve_address_of_overloaded_function): Don't check it.
970 * decl.c (check_default_argument): Call
971 perform_implicit_conversion_flags.
972
973 * pt.c (print_candidates_1): Use inform instead of error.
974
975 2012-07-24 Paolo Carlini <paolo.carlini@oracle.com>
976
977 * pt.c (convert_template_argument, tsubst): Simplify fourth argument
978 to make_typename_type (complain & tf_error -> complain).
979
980 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
981
982 * class.c (n_vtables, n_vtable_entries, n_vtable_searches,
983 n_vtable_elems, n_convert_harshness, n_compute_conversion_costs,
984 n_inner_fields_searched): Always define.
985 (build_primary_vtable): Convert #ifdef GATHER_STATISTICS to if-code.
986 (print_class_statistics): Convert #ifdef GATHER_STATISTICS to if-code.
987 * tree.c (depth_reached): Always define global.
988 (cxx_print_statistics): Convert #ifdef GATHER_STATISTICS to if-code.
989 * pt.c (depth_reached): Always define.
990 (push_tinst_level): Convert #ifdef GATHER_STATISTICS to if-code.
991 * search.c (n_fields_searched, n_calls_lookup_field,
992 n_calls_lookup_field_1, n_calls_lookup_fnfields,
993 n_calls_lookup_fnfields_1, n_calls_get_base_type,
994 n_outer_fields_searched, n_contexts_saved): Always define.
995 (lookup_field_1): Convert #ifdef GATHER_STATISTICS to if-code.
996 (lookup_member): Likewise.
997 (lookup_fnfields_idx_nolazy): Likewise.
998 (print_search_statistics): Likewise.
999 (reinit_search_statistics): Unconditionally re-set counters.
1000 * lex.c (retrofit_lang_decl): Convert #ifdef GATHER_STATISTICS
1001 to if-code.
1002 (cxx_dup_lang_specific_decl): Likewise.
1003 (copy_lang_type): Likewise.
1004 (cxx_make_type): Likewise.
1005
1006 2012-07-20 Jason Merrill <jason@redhat.com>
1007
1008 PR c++/54038
1009 * tree.c (build_cplus_array_type): Use build_cplus_array_type to build
1010 canonical array type rather than mess with its TYPE_*_VARIANT.
1011
1012 2012-07-19 Jason Merrill <jason@redhat.com>
1013
1014 PR c++/54026
1015 * typeck.c (cp_apply_type_quals_to_decl): Check COMPLETE_TYPE_P.
1016
1017 PR c++/54021
1018 * call.c (build_cxx_call): Set optimize when folding
1019 __builtin_constant_p in a constexpr function.
1020
1021 2012-07-18 Jason Merrill <jason@redhat.com>
1022
1023 * pt.c (instantiate_decl): Don't recheck substitutions.
1024
1025 2012-07-18 Paolo Carlini <paolo.carlini@oracle.com>
1026 Jason Merrill <jason@redhat.com>
1027
1028 DR 1170
1029 PR c++/51213
1030 * semantics.c (perform_access_checks): Add complain parm, return bool.
1031 (perform_deferred_access_checks): Likewise.
1032 (perform_or_defer_access_check): Likewise.
1033 (speculative_access_check): Remove.
1034 * call.c (enforce_access): Add complain parm, return bool.
1035 * decl.c, friend.c, class.c, init.c, parser.c: Adjust callers.
1036 * search.c: Adjust callers.
1037 * cp-tree.h (TINFO_RECHECK_ACCESS_P): New macro.
1038 (FNDECL_RECHECK_ACCESS_P): New macro.
1039 * method.c (synthesized_method_walk): Stop deferring access checks.
1040 * pt.c (recheck_decl_substitution): New.
1041 (instantiate_template_1): Set and check FNDECL_RECHECK_ACCESS_P.
1042
1043 2012-07-18 Jason Merrill <jason@redhat.com>
1044
1045 * method.c (process_subob_fn): Make sure no_implicit_p is non-null
1046 before trying to store through it.
1047
1048 2012-07-17 Jason Merrill <jason@redhat.com>
1049
1050 PR c++/53995
1051 * decl.c (finish_enum_value_list): Only call
1052 insert_late_enum_def_into_classtype_sorted_fields in class scope.
1053
1054 PR c++/53989
1055 * tree.c (build_cplus_array_type): Also add TYPE_CANONICAL
1056 to the list of variants.
1057
1058 * decl.c (xref_basetypes): Complain about incomplete template base.
1059 * class.c (finish_struct): Adjust variants in templates, too.
1060
1061 PR c++/53549
1062 * parser.c (cp_parser_class_head): Call xref_basetypes here.
1063 (cp_parser_class_specifier_1): Not here.
1064 * pt.c (tsubst_decl) [USING_DECL]: Check uses_template_parms
1065 as well as DECL_DEPENDENT_P.
1066
1067 2012-07-16 Jason Merrill <jason@redhat.com>
1068
1069 * cp-tree.h (struct deferred_access_check): Add location.
1070 * semantics.c (perform_access_checks): Use it.
1071 (perform_or_defer_access_check): Store it.
1072
1073 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1074
1075 * dump.c (dump_stmt): Moved here from c-dump.c.
1076 * optimize.c: Include dumpfile.h instead of tree-dump.h.
1077 * class.c: Likewise.
1078 * decl2.c: Likewise.
1079 * Make-lang.in: Fix dependencies.
1080
1081 2012-07-13 Jason Merrill <jason@redhat.com>
1082
1083 PR c++/53953
1084 * method.c (synthesized_method_walk): Initialize no_implicit_p sooner.
1085
1086 2012-07-12 Jason Merrill <jason@redhat.com>
1087
1088 * pt.c (instantiate_decl): Check typedefs access here.
1089 (instantiate_template_1): Not here.
1090
1091 * pt.c (deduction_tsubst_fntype): Just suppress access checking.
1092 (instantiate_template_1): Set DECL_TI_TEMPLATE before access checking.
1093 (push_deduction_access_scope, pop_deduction_access_scope): Remove.
1094
1095 2012-07-11 Jason Merrill <jason@redhat.com>
1096
1097 DR 1402
1098 * method.c (synthesized_method_walk): Replace uses of msg with diag.
1099 Correct handling of virtual bases with move operations.
1100 (process_subob_fn, walk_field_subobs): Replace uses of msg with diag.
1101
1102 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1103
1104 * method.c: Do not include tree-pass.h.
1105
1106 2012-07-10 Jason Merrill <jason@redhat.com>
1107
1108 DR 1402
1109 PR c++/53733
1110 * cp-tree.h (FNDECL_SUPPRESS_IMPLICIT_DECL): New.
1111 (struct lang_decl_fn): Add suppress_implicit_decl field.
1112 * method.c (implicitly_declare_fn): Check it.
1113 (process_subob_fn): Add no_implicit_p parm.
1114 (walk_field_subobs, synthesized_method_walk): Likewise.
1115 (maybe_explain_implicit_delete): Adjust.
1116 (explain_implicit_non_constexpr): Adjust.
1117
1118 * method.c (synthesized_method_walk): Avoid changing
1119 EH spec based on cleanups in other places, too.
1120
1121 2012-07-09 Sterling Augustine <saugustine@google.com>
1122
1123 * error.c (lang_decl_name): Use TFF_UNQUALIFIED_NAME flag.
1124
1125 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1126
1127 * decl.c (cp_finish_decl): Add FIXME at add_local_decl call site.
1128
1129 2012-07-06 Jason Merrill <jason@redhat.com>
1130
1131 PR c++/53862
1132 * pt.c (tsubst_arg_types): Add "end" parameter.
1133 (check_undeduced_parms): Use it.
1134
1135 * cp-tree.h (DECL_DECLARES_TYPE_P): Check DECL_TYPE_TEMPLATE_P.
1136
1137 PR c++/53858
1138 * name-lookup.c (ambiguous_decl): Use DECL_TYPE_TEMPLATE_P.
1139
1140 2012-07-05 Jason Merrill <jason@redhat.com>
1141
1142 PR c++/53039
1143 * pt.c (arg_from_parm_pack_p): Go back to using same_type_p or
1144 cp_tree_equal.
1145
1146 * cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove.
1147 (struct template_parm_index_s): Remove num_siblings.
1148 * pt.c (fixup_template_parms, fixup_template_parm_index): Remove.
1149 (fixup_template_type_parm_type): Remove.
1150 (build_template_parm_index): Remove num_siblings parm.
1151 (process_template_parm): Likewise.
1152 * parser.c (cp_parser_template_parameter_list): Adjust.
1153 * tree.c (cp_tree_equal): Don't compare num_siblings.
1154 * typeck.c (comp_template_parms_position): Likewise.
1155
1156 PR c++/50852
1157 PR c++/53039
1158 * tree.c (strip_typedefs_expr): New.
1159 * cp-tree.h: Declare it.
1160 * pt.c (convert_template_argument, unify): Use it.
1161 * parser.c (cp_parser_template_declaration_after_export): Don't call
1162 fixup_template_parms.
1163
1164 2012-07-04 Jason Merrill <jason@redhat.com>
1165
1166 PR c++/53848
1167 PR c++/53524
1168 * decl.c (build_enumerator): Don't use build_lang_decl_loc.
1169
1170 2012-07-03 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR c++/53812
1173 * semantics.c (finish_goto_stmt): Surround computed goto argument
1174 with CLEANUP_POINT_EXPR if needed.
1175
1176 2012-07-02 Jason Merrill <jason@redhat.com>
1177
1178 PR c++/53619
1179 * pt.c (in_template_function): New.
1180 * cp-tree.h: Declare it.
1181 * class.c (build_base_path, resolves_to_fixed_type_p): Use it.
1182
1183 PR c++/53783
1184 * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Use tsubst
1185 for LAMBDA_EXPR_EXTRA_SCOPE.
1186
1187 PR c++/53788
1188 * pt.c (build_non_dependent_expr): Don't wrap a dummy object.
1189
1190 PR c++/53816
1191 * class.c (resolves_to_fixed_type_p): Check uses_template_parms
1192 (current_function_decl) instead of processing_template_decl.
1193
1194 PR c++/53821
1195 * semantics.c (maybe_add_lambda_conv_op): Don't set
1196 DECL_INTERFACE_KNOWN.
1197
1198 PR c++/53524
1199 * call.c (build_conditional_expr_1): Don't warn about comparison of
1200 two enumerators before their enumeration is complete.
1201 (build_new_op_1): Call decay_conversion before warn_logical_operator.
1202 * decl.c (build_enumerator): Set DECL_CONTEXT of an enumerator to
1203 its enumeration.
1204 * decl2.c (mark_used): Call used_types_insert for enums.
1205 * semantics.c (finish_id_expression): Don't decay CONST_DECL.
1206 (finish_member_declaration): Don't change DECL_CONTEXT of enumerators.
1207 * class.c (check_field_decls): Don't change DECL_CONTEXT of enums.
1208 * typeck.c (convert_for_assignment): Don't decay CONST_DECL.
1209 (build_class_member_access_expr): Look through unscoped enums.
1210 * search.c (context_for_name_lookup): Look through unscoped enums.
1211 * pt.c (tsubst_copy_and_build): Don't decay CONST_DECL.
1212 (tsubst_copy): Use DECL_CONTEXT to find the enumeration.
1213 * tree.c (decl_linkage): Likewise.
1214 * cvt.c (ocp_convert): Check decayed expr for enum range warning.
1215
1216 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1217
1218 * Make-lang.in: Remove tree-mudflap.o from CXX_AND_OBJCXX_OBJS.
1219
1220 2012-06-27 Jason Merrill <jason@redhat.com>
1221
1222 * parser.c (cp_parser_check_for_invalid_template_id): tag_type parm.
1223 (cp_parser_simple_type_specifier, cp_parser_class_head): Adjust.
1224 (cp_parser_elaborated_type_specifier): Adjust.
1225 * decl.c (duplicate_decls): Return error_mark_node on template
1226 mismatch.
1227
1228 PR c++/53563
1229 * parser.c (cp_parser_template_id): Add tag_type parm.
1230 (cp_parser_template_name): Likewise.
1231 (cp_parser_id_expression, cp_parser_unqualified_id): Adjust.
1232 (cp_parser_pseudo_destructor_name, cp_parser_type_name): Adjust.
1233 (cp_parser_simple_type_specifier, cp_parser_class_name): Adjust.
1234 (cp_parser_elaborated_type_specifier, cp_parser_class_head): Adjust.
1235
1236 2012-06-27 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1237
1238 PR C++/51033
1239 * semantics.c (constexpr_call): Fix typo in comment.
1240 (cxx_eval_vec_perm_expr): New.
1241 (cxx_eval_constant_expression): Fold VEC_PERM_EXPRs.
1242
1243 2012-06-26 Richard Guenther <rguenther@suse.de>
1244
1245 PR c++/53752
1246 * mangle.c (write_array_type): Truncate the number-of-elements
1247 result.
1248
1249 2012-06-25 Jason Merrill <jason@redhat.com>
1250
1251 PR c++/53498
1252 PR c++/53305
1253 * pt.c (tsubst_decl) [PARM_DECL]: Don't recurse into DECL_CHAIN
1254 if cp_unevaluated_operand is set.
1255 (tsubst_copy) [PARM_DECL]: Don't copy before tsubsting.
1256
1257 PR c++/52988
1258 * typeck.c (decay_conversion): Don't discard side-effects from
1259 expressions of nullptr_t.
1260
1261 2012-06-25 Florian Weimer <fweimer@redhat.com>
1262
1263 * init.c (build_new_1): Warn about (T[N]) for variable N, and
1264 reject T[M][N].
1265
1266 * parser.c (cp_parser_direct_new_declarator): Accept non-constant
1267 expressions. Handled now in build_new_1.
1268
1269 2012-06-25 Jason Merrill <jason@redhat.com>
1270
1271 PR c++/53202
1272 * semantics.c (build_data_member_initialization): Always keep
1273 initializer for empty base.
1274 (cxx_eval_bare_aggregate): Discard it here.
1275
1276 PR c++/53565
1277 * pt.c (tsubst_omp_for_iterator): Simplify DECL_EXPR handling.
1278 (tsubst_expr) [OMP_FOR]: Here, too.
1279
1280 2012-06-25 Jakub Jelinek <jakub@redhat.com>
1281
1282 PR c++/53594
1283 * class.c (check_bases_and_members): Avoid -Wuninitialized
1284 diagnostics for non-static const members or references if they
1285 use NSDMI.
1286
1287 2012-06-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1288
1289 * parser.c (cp_parser_direct_declarator): Move virt-specifier
1290 parsing after late-specified return type parsing.
1291
1292 2012-06-14 Jason Merrill <jason@redhat.com>
1293
1294 PR c++/53651
1295 * name-lookup.c (constructor_name_p): Don't try to look at the
1296 name of a DECLTYPE_TYPE.
1297
1298 2012-06-18 Lawrence Crowl <crowl@google.com>
1299
1300 * decl2.c (cp_write_global_declarations): Rename use of TV_PHASE_CGRAPH
1301 to TV_PHASE_OPT_GEN.
1302
1303 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
1304
1305 * decl.c (finish_function): Remove code conditional on VMS_TARGET.
1306
1307 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1308
1309 PR c++/51033
1310 * semantics.c (literal_type_p): Handle VECTOR_TYPE.
1311 (potential_constant_expression_1): Handle VEC_PERM_EXPR.
1312 * parser.c (cp_parser_postfix_expression): Handle RID_BUILTIN_SHUFFLE.
1313
1314 2012-06-09 Jason Merrill <jason@redhat.com>
1315
1316 * pt.c (tsubst_expr) [TAG_DEFN]: Instantiate local class.
1317 * class.c (finish_struct): Don't add a TAG_DEFN for a lambda.
1318 * decl2.c (finish_static_data_member_decl): Avoid redundant error.
1319
1320 PR c++/53599
1321 * name-lookup.c (pushtag_1): Add a DECL_EXPR for a local class.
1322 * semantics.c (finish_cond): Build a COMPOUND_EXPR.
1323 * pt.c (tsubst_expr) [COMPOUND_EXPR]: Handle.
1324 [DECL_EXPR]: Don't call cp_finish_decl for an implicit typedef.
1325 Don't return the decl.
1326
1327 2012-06-11 Richard Guenther <rguenther@suse.de>
1328
1329 PR c++/53605
1330 * mangle.c (write_array_type): Use double-ints for array domain
1331 arithmetic.
1332
1333 2012-06-07 Fabien ChĂȘne <fabien@gcc.gnu.org>
1334
1335 PR c++/51214
1336 * cp-tree.h (insert_late_enum_def_into_classtype_sorted_fields):
1337 Declare.
1338 * class.c (insert_into_classtype_sorted_fields): New.
1339 (add_enum_fields_to_record_type): New.
1340 (count_fields): Adjust the comment.
1341 (add_fields_to_record_type): Likewise.
1342 (finish_struct_1): Move the code that inserts the fields for the
1343 sorted case, into insert_into_classtype_sorted_fields, and call
1344 it.
1345 (insert_late_enum_def_into_classtype_sorted_fields): Define.
1346 * decl.c (finish_enum_value_list): Call
1347 insert_late_enum_def_into_classtype_sorted_fields if a late enum
1348 definition is encountered.
1349
1350 2012-06-06 Paolo Carlini <paolo.carlini@oracle.com>
1351
1352 PR c++/53567
1353 * typeck.c (cp_perform_integral_promotions): New, like
1354 perform_integral_promotions but also takes a tsubst_flags_t parameter.
1355 (pointer_diff): Add tsubst_flags_t parameter.
1356 (decay_conversion, cp_default_conversion, cp_build_array_ref,
1357 cp_build_binary_op, cp_build_unary_op, build_static_cast_1,
1358 build_reinterpret_cast_1, cp_build_modify_expr,
1359 convert_for_assignment): Adjust.
1360 * optimize.c (build_delete_destructor_body): Adjust.
1361 * init.c (expand_virtual_init, expand_default_init, build_new_1,
1362 build_new, build_vec_delete_1, build_vec_init, build_delete): Adjust.
1363 (construct_virtual_base): Adjust LOOKUP_COMPLAIN -> 0.
1364 * class.c (build_base_path): Adjust.
1365 * decl.c (compute_array_index_type, finish_destructor_body): Likewise.
1366 * method.c (synthesized_method_walk): Adjust flag and complain.
1367 * rtti.c (ifnonnull): Add tsubst_flags_t parameter.
1368 (build_typeid, build_dynamic_cast_1): Adjust.
1369 * except.c (initialize_handler_parm): Likewise.
1370 * typeck2.c (process_init_constructor_record): Likewise.
1371 * pt.c (tsubst_friend_class): Don't change flags.
1372 * semantics.c (finish_goto_stmt, handle_omp_for_class_iterator,
1373 finish_static_assert): Likewise.
1374 * parser.c (cp_parser_lookup_name): Just pass 0 as flags to
1375 lookup_name_real.
1376 * call.c (build_op_delete_call): Add tsubst_flags_t parameter.
1377 (convert_like_real, convert_arg_to_ellipsis, convert_for_arg_passing):
1378 Adjust.
1379 (standard_conversion): Adjust LOOKUP_COMPLAIN -> 0.
1380 (implicit_conversion): Mask out tf_error with a FIXME.
1381 (build_user_type_conversion_1, build_new_op_1, build_over_call): Use
1382 complain & tf_error instead of flags & LOOKUP_COMPLAIN.
1383 * cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
1384 build_up_reference, convert_to_reference, cp_convert,
1385 cp_convert_and_check, ocp_convert, convert_force): Add tsubst_flags_t
1386 parameter.
1387 (convert_to_reference, ocp_convert): Use complain & tf_error instead
1388 of flags & LOOKUP_COMPLAIN.
1389 (convert_force): Adjust LOOKUP_COMPLAIN -> 0.
1390 * name-lookup.c (identifier_type_value_1, lookup_qualified_name,
1391 lookup_name_real, lookup_function_nonclass, lookup_name,
1392 lookup_name_prefer_type): Adjust LOOKUP_COMPLAIN -> 0.
1393 * cp-tree.h: Adjust prototypes; remove LOOKUP_COMPLAIN.
1394
1395 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1396
1397 * decl.c: Do not include output.h.
1398 (start_decl): Remove code for flag_conserve_space.
1399
1400 2012-06-06 Fabien ChĂȘne <fabien@gcc.gnu.org>
1401
1402 PR c++/52841
1403 * parser.c (cp_parser_alias_declaration): Return earlier
1404 if an error occured.
1405
1406 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
1407
1408 PR c++/53524
1409 * call.c (build_conditional_expr_1): Use OPT_Wenum_compare
1410 to control enumeral mismatch in conditional expression too.
1411
1412 2012-06-04 Sterling Augustine <saugustine@google.com>
1413
1414 * cp-tree.h: Declare decl_as_dwarf_string, lang_decl_dwarf_name.
1415 * cp-lang.c (cxx_dwarf_name): Call them.
1416
1417 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1418
1419 * semantics.c: Do not include output.h.
1420 * decl2.c: Likewise.
1421 * friend.c: Likewise.
1422 * typeck.c: Likewise.
1423 * typeck2.c: Likewise.
1424 * Make-lang.in: Fix dependencies.
1425
1426 2012-06-01 Jason Merrill <jason@redhat.com>
1427
1428 PR c++/52973
1429 * parser.c (cp_parser_class_head): Apply attributes here.
1430 * semantics.c (begin_class_definition): Not here.
1431 * cp-tree.h: Adjust.
1432
1433 PR c++/52725
1434 * parser.c (cp_parser_binary_expression): Bail early if we're parsing
1435 tentatively and the LHS has a parse error.
1436
1437 PR c++/53137
1438 * pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE.
1439 (instantiate_decl): Don't push_to_top_level for local class methods.
1440 (instantiate_class_template_1): Or for local classes.
1441
1442 PR c++/53484
1443 * pt.c (do_auto_deduction): Don't try to deduce from a
1444 type-dependent initializer.
1445
1446 2012-06-01 Paolo Carlini <paolo.carlini@oracle.com>
1447
1448 PR c++/26155
1449 * name-lookup.c (push_namespace): When error recovery is
1450 impossible just error out in duplicate_decls.
1451
1452 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1453
1454 * call.c: Do not include output.h.
1455 * class.c: Likewise.
1456 * except.c: Likewise.
1457 * friend.c: Likewise.
1458 * init.c: Likewise.
1459 * lex.c: Likewise.
1460 * method.c: Likewise.
1461 * parser.c: Likewise.
1462 * pt.c: Likewise.
1463 * rtti.c: Likewise.
1464 * search.c: Likewise.
1465
1466 2012-05-30 Jason Merrill <jason@redhat.com>
1467
1468 PR c++/53356
1469 * tree.c (stabilize_init): Handle stabilizing a TARGET_EXPR
1470 representing a bitwise copy of a glvalue.
1471
1472 * tree.c (stabilize_expr): Tweak logic.
1473
1474 PR c++/53356
1475 * tree.c (stabilize_init): Side effects make the init unstable.
1476
1477 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1478
1479 PR c++/53503
1480 * semantics.c (potential_constant_expression_1): Handle LTGT_EXPR.
1481
1482 2012-05-26 Paolo Carlini <paolo.carlini@oracle.com>
1483
1484 PR c++/53491
1485 * tree.c (stabilize_expr): Handle exp of void type.
1486
1487 2012-05-26 Jason Merrill <jason@redhat.com>
1488
1489 PR c++/53220
1490 * call.c (convert_like_real) [ck_list]: Take array address directly.
1491 * typeck.c (decay_conversion): Reject decay of an array compound
1492 literal.
1493
1494 2012-05-25 Paolo Carlini <paolo.carlini@oracle.com>
1495
1496 PR c++/32054
1497 * parser.c (cp_parser_member_declaration): A storage class is not
1498 allowed in a declaration of an anonymous aggregate in a class scope.
1499
1500 2012-05-24 Uros Bizjak <ubizjak@gmail.com>
1501
1502 PR obj-c++/53441
1503 * decl.c (grokdeclarator): Check that current_class_type is non-NULL
1504 before calling constructor_name_p.
1505
1506 2012-05-24 Paolo Carlini <paolo.carlini@oracle.com>
1507
1508 PR c++/32080
1509 * parser.c (cp_parser_ctor_initializer_opt_and_function_body,
1510 cp_parser_function_body): Add a bool parameter, true when parsing
1511 a function-try-block.
1512 (cp_parser_function_try_block): Pass true to the above.
1513 (cp_parser_function_definition_after_declarator,
1514 cp_parser_function_transaction): Adjust.
1515
1516 2012-05-23 Paolo Carlini <paolo.carlini@oracle.com>
1517
1518 PR c++/29185
1519 * decl2.c (delete_sanity): Extend 'deleting array' warning to
1520 any array type.
1521
1522 2012-05-21 Paolo Carlini <paolo.carlini@oracle.com>
1523
1524 PR c++/51184
1525 * decl.c (grokdeclarator): Diagnose functions returning abstract
1526 class types as TYPENAME.
1527 * cp-tree.h (ABSTRACT_CLASS_TYPE_P): Add.
1528 * except.c (is_admissible_throw_operand_or_catch_parameter): Use it.
1529 * pt.c (tsubst): Likewise.
1530 * semantics.c (trait_expr_value): Likewise.
1531
1532 2012-05-21 Paolo Carlini <paolo.carlini@oracle.com>
1533
1534 PR c++/40821
1535 * parser.c (cp_parser_attributes_opt): Enforce error checking of
1536 unbalanced parentheses in the presence of tentative parsing.
1537
1538 2012-05-17 Paolo Carlini <paolo.carlini@oracle.com>
1539
1540 PR c++/39681
1541 * parser.c (cp_parser_new_type_id): Early return error_mark_node
1542 if the cp_parser_type_specifier_seq call has type_specifier_seq.type
1543 error_mark_node; tidy.
1544 (cp_parser_new_expression): Always initialize nelts to NULL_TREE to
1545 avoid uninitialized warnings.
1546 (cp_parser_init_declarator, cp_parser_late_parse_one_default_arg):
1547 Call cp_parser_skip_to_end_of_statement if cp_parser_initializer
1548 returns error_mark_node.
1549
1550 2012-05-17 Paolo Carlini <paolo.carlini@oracle.com>
1551
1552 PR c++/53371
1553 * except.c (is_admissible_throw_operand): Rename to
1554 is_admissible_throw_operand_or_catch_parameter and handle
1555 catch parameter too.
1556 (expand_start_catch_block): Use it.
1557 (build_throw): Adjust.
1558
1559 2012-05-17 Paolo Carlini <paolo.carlini@oracle.com>
1560
1561 PR c++/44516
1562 * typeck.c (build_x_array_ref, build_x_conditional_expr,
1563 build_x_compound_expr, build_x_modify_expr): Add location_t parameter.
1564 (finish_class_member_access_expr, build_x_indirect_ref,
1565 build_x_binary_op, build_x_compound_expr_from_list,
1566 build_x_compound_expr_from_vec): Adjust callers.
1567 * tree.c (build_min_nt_loc): New.
1568 (build_min_nt): Remove.
1569 * typeck2.c (build_x_arrow): Adjust callers.
1570 * pt.c (tsubst_qualified_id, tsubst_omp_for_iterator,
1571 tsubst_copy_and_build): Likewise.
1572 * semantics.c (finish_mem_initializers, handle_omp_for_class_iterator,
1573 finish_omp_atomic): Likewise.
1574 * decl2.c (grok_array_decl, build_anon_union_vars): Adjust.
1575 * parser.c (cp_parser_question_colon_clause,
1576 cp_parser_assignment_expression, cp_parser_expression,
1577 cp_parser_template_id, cp_parser_omp_for_loop): Likewise.
1578 * cp-tree.h: Update.
1579
1580 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1581
1582 PR preprocessor/7263
1583 * cp-tree.h (enum cp_decl_spec): Add new enumerators to cover all
1584 the possible declarator specifiers so far.
1585 (struct cp_decl_specifier_seq::locations): Declare new member.
1586 (cp_decl_specifier_seq::{specs, type_location}): Remove.
1587 (decl_spec_seq_has_spec_p): Declare new function.
1588 * parser.c (cp_parser_check_decl_spec): Remove.
1589 (set_and_check_decl_spec_loc): Define new static function.
1590 (decl_spec_seq_has_spec_p): Define new public function.
1591 (cp_parser_decl_specifier_seq, cp_parser_function_specifier_opt)
1592 (cp_parser_type_specifier, cp_parser_simple_type_specifier)
1593 (cp_parser_set_storage_class, cp_parser_set_decl_spec_type)
1594 (cp_parser_alias_declaration): Set the locations for each
1595 declspec, using set_and_check_decl_spec_loc.
1596 (cp_parser_explicit_instantiation, cp_parser_init_declarator)
1597 (cp_parser_member_declaration, cp_parser_init_declarator): Use the
1598 new declspec location for specifiers. Use the new
1599 decl_spec_seq_has_spec_p.
1600 (cp_parser_type_specifier_seq): Use the new
1601 set_and_check_decl_spec_loc. Stop using
1602 cp_parser_check_decl_spec. Use the new decl_spec_seq_has_spec_p.
1603 (, cp_parser_init_declarator): Use the new
1604 set_and_check_decl_spec_loc.
1605 (cp_parser_single_declaration, cp_parser_friend_p)
1606 (cp_parser_objc_class_ivars, cp_parser_objc_struct_declaration):
1607 Use the new decl_spec_seq_has_spec_p.
1608 * decl.c (check_tag_decl): Use new decl_spec_seq_has_spec_p. Use
1609 the more precise ds_redefined_builtin_type_spec location for
1610 diagnostics about re-declaring C++ built-in types.
1611 (start_decl, grokvardecl, grokdeclarator): Use the new
1612 decl_spec_seq_has_spec_p.
1613
1614 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1615
1616 PR c++/11856
1617 * pt.c (tsubst_copy_and_build): Increase / decrease
1618 c_inhibit_evaluation_warnings around build_x_binary_op call.
1619
1620 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
1621
1622 * cp-tree.h (TYPE_PTRMEM_P): Rename to TYPE_PTRDATAMEM_P.
1623 (TYPE_PTR_TO_MEMBER_P): Rename to TYPE_PTRMEM_P.
1624 (TYPE_PTR_OR_PTRMEM_P): Add.
1625 * typeck.c (composite_pointer_type_r, composite_pointer_type,
1626 common_pointer_type, cp_build_indirect_ref, cp_build_binary_op,
1627 cp_truthvalue_conversion, convert_ptrmem, build_static_cast_1,
1628 build_reinterpret_cast_1, build_const_cast_1, comp_ptr_ttypes_real,
1629 casts_away_constness_r, casts_away_constness): Adjust.
1630 * init.c (build_zero_init_1): Adjust.
1631 * class.c (check_field_decls): Likewise.
1632 * decl.c (check_default_argument): Likewise.
1633 * rtti.c (target_incomplete_p): Likewise.
1634 * tree.c (zero_init_p): Likewise.
1635 * cxx-pretty-print.c (pp_cxx_ptr_operator,
1636 pp_cxx_abstract_declarator): Likewise.
1637 * typeck2.c (build_m_component_ref): Likewise.
1638 * pt.c (convert_nontype_argument, invalid_nontype_parm_type_p,
1639 dependent_type_p_r): Likewise.
1640 * call.c (null_member_pointer_value_p, standard_conversion,
1641 add_builtin_candidate, build_conditional_expr_1, compare_ics):
1642 Likewise.
1643 * cp-objcp-common.c (cp_var_mod_type_p): Likewise.
1644 * cvt.c (cp_convert_to_pointer, ocp_convert,
1645 perform_qualification_conversions): Likewise.
1646 * mangle.c (write_type): Likewise.
1647 * name-lookup.c (arg_assoc_type): Likewise.
1648
1649 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
1650
1651 * parser.c (struct cp_parser_expression_stack_entry): Add location_t
1652 field.
1653 (cp_parser_binary_expression): Rework to always update at the same
1654 time tree_type and loc.
1655 * call.c (print_z_candidate): Add location_t parameter.
1656 (print_z_candidates, convert_like_real, joust): Adjust.
1657
1658 2012-05-11 Alexandre Oliva <aoliva@redhat.com>
1659
1660 PR c++/53209
1661 * pt.c (tsubst_decl): Bail out if argvec is error_mark_node.
1662
1663 2012-05-11 Paolo Carlini <paolo.carlini@oracle.com>
1664
1665 PR c++/53305
1666 * pt.c (tsubst_copy: case PARM_DECL): Return error_mark_node if
1667 tsubst_decl returns NULL_TREE.
1668 * cxx-pretty-print.c (pp_cxx_simple_type_specifier): Handle
1669 BOUND_TEMPLATE_TEMPLATE_PARM.
1670
1671 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1672
1673 PR c++/53158
1674 * cvt.c (ocp_convert): Error out early for void -> bool conversions.
1675 * typeck.c (decay_conversion): Use error_at.
1676 * call.c (build_integral_nontype_arg_conv, convert_like_real,
1677 convert_arg_to_ellipsis, perform_implicit_conversion_flags,
1678 initialize_reference): Likewise.
1679 * cvt.c (warn_ref_binding): Add location_t parameter.
1680 (cp_convert_to_pointer, convert_to_reference, ocp_convert,
1681 convert_to_void, ): Use error_at and warning_at.
1682
1683 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1684
1685 PR c++/53301
1686 * decl.c (check_default_argument): Fix typo (POINTER_TYPE_P
1687 instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning.
1688
1689 2012-05-06 Paolo Carlini <paolo.carlini@oracle.com>
1690
1691 PR c++/53152
1692 * call.c (op_error, build_new_op_1, build_new_op): Add location_t
1693 parameter.
1694 (build_conditional_expr_1): Adjust.
1695 * typeck.c (build_x_indirect_ref, build_x_binary_op,
1696 build_x_unary_op): Add location_t parameter.
1697 (rationalize_conditional_expr, build_x_array_ref,
1698 build_x_compound_expr, cp_build_modify_expr, build_x_modify_expr):
1699 Adjust.
1700 * typeck2.c (build_x_arrow): Add location_t parameter.
1701 * semantics.c (finish_unary_op_expr): Likewise.
1702 (finish_increment_expr, handle_omp_for_class_iterator): Adjust.
1703 * decl2.c (grok_array_decl): Add location_t parameter.
1704 * parser.c (cp_parser_postfix_open_square_expression,
1705 cp_parser_postfix_dot_deref_expression, cp_parser_unary_expression,
1706 cp_parser_binary_expression, cp_parser_builtin_offsetof,
1707 do_range_for_auto_deduction, cp_convert_range_for,
1708 cp_parser_template_argument, cp_parser_omp_for_cond): Pass the
1709 location, adjust.
1710 * pt.c (tsubst_copy_and_build): Adjust.
1711 * tree.c (maybe_dummy_object): Likewise.
1712 * cp-tree.h: Update declarations.
1713
1714 2012-05-04 Paolo Carlini <paolo.carlini@oracle.com>
1715
1716 * semantics.c (cxx_eval_constant_expression, case CONVERT_EXPR): Tidy.
1717
1718 2012-05-04 Paolo Carlini <paolo.carlini@oracle.com>
1719
1720 PR c++/53166
1721 * pt.c (instantiate_class_template_1): Increase / decrease
1722 c_inhibit_evaluation_warnings around the tsubst_expr call
1723 for STATIC_ASSERT_CONDITION.
1724 (tsubst_expr, case STATIC_ASSERT): Likewise.
1725 * typeck.c (cp_build_binary_op, case EQ_EXPR/NE_EXPR): Check
1726 c_inhibit_evaluation_warnings in the OPT_Waddress warnings.
1727
1728 2012-05-03 Paolo Carlini <paolo.carlini@oracle.com>
1729
1730 PR c++/53186
1731 * call.c (build_over_call): Handle final member functions
1732 and class types.
1733 (build_new_method_call_1): Do not handle here.
1734
1735 2012-05-02 Richard Guenther <rguenther@suse.de>
1736
1737 * decl.c (grokdeclarator): Properly check for sizes that
1738 cover more than half of the address-space.
1739
1740 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1741
1742 PR c++/51033
1743 * typeck.c (cp_build_array_ref): Handle VECTOR_TYPE.
1744 * decl2.c (grok_array_decl): Likewise.
1745
1746 PR c++/51314
1747 * parser.c (cp_parser_sizeof_operand): Require parentheses for
1748 sizeof...
1749
1750 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1751
1752 Fix location for static class members
1753 * decl.c (grokdeclarator): Use the location carried by the
1754 declarator for the DECL of the static class member.
1755
1756 Fix va_arg type location
1757 * cp-tree.h (build_x_va_arg): Take an additional location
1758 parameter.
1759 * call.c (build_x_va_arg): Take a loc parameter for the location
1760 of the type of the va_arg expression.
1761 * parser.c (cp_parser_primary_expression): Pass the type of the
1762 type in the va_arg expression to build_x_va_arg.
1763 * pt.c (tsubst_copy): Adjust calls to build_x_va_arg.
1764
1765 Make conversion warnings work on NULL with -ftrack-macro-expansion
1766 * call.c (conversion_null_warnings): Use the new
1767 expansion_point_location_if_in_system_header.
1768 * cvt.c (build_expr_type_conversion): Likewise.
1769 * typeck.c (cp_build_binary_op): Likewise.
1770
1771 2012-04-30 Manuel López-Ibåñez <manu@gcc.gnu.org>
1772
1773 * typeck.c (convert_for_assignment): Replace
1774 Wmissing-format-attribute with Wsuggest-attribute=format.
1775 * call.c (convert_for_arg_passing): Likewise.
1776
1777 2012-04-26 Paolo Carlini <paolo.carlini@oracle.com>
1778
1779 PR c++/53096
1780 * class.c (check_bases_and_members): Implement core/1333, do not
1781 disallow defaulted in the class body non-const ref special members.
1782
1783 2012-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1784
1785 PR c++/52363
1786 * call.c (tourney, perform_overload_resolution,
1787 build_operator_new_call, build_user_type_conversion_1,
1788 build_user_type_conversion, perform_overload_resolution,
1789 add_template_candidate, add_template_candidate_real,
1790 add_template_conv_candidate, add_builtin_candidates,
1791 add_builtin_candidate, build_builtin_candidate,
1792 add_conv_candidate, add_function_candidate, implicit_conversion,
1793 reference_binding, build_list_conv, conditional_conversion,
1794 add_candidates, can_convert_array, build_aggr_conv,
1795 build_array_conv, build_complex_conv, conditional_conversion):
1796 Add tsubst_flags_t parameter.
1797 (joust): Likewise, use it to handle SFINAE as if pedantic.
1798 (add_list_candidates, build_integral_nontype_arg_conv,
1799 perform_overload_resolution, build_new_function_call,
1800 build_operator_new_call, build_op_call_1,
1801 build_conditional_expr_1, build_new_op_1, convert_like_real,
1802 convert_arg_to_ellipsis, convert_default_arg,
1803 convert_for_arg_passing, build_over_call,
1804 build_new_method_call_1, can_convert_arg, can_convert_arg_bad,
1805 perform_implicit_conversion_flags,
1806 perform_direct_initialization_if_possible,
1807 initialize_reference): Adjust.
1808 * typeck.c (casts_away_constness, casts_away_constness_r):
1809 Add tsubst_flags_t parameter.
1810 (convert_arguments, check_for_casting_away_constness,
1811 build_static_cast_1, build_ptrmemfunc, convert_for_assignment):
1812 Adjust.
1813 * decl.c (reshape_init_r, check_default_argument): Likewise.
1814 * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
1815 * pt.c (convert_nontype_argument, check_non_deducible_conversion):
1816 Likewise.
1817 * init.c (build_new_1): Likewise.
1818 * cvt.c (convert_to_reference, ocp_convert, build_type_conversion,
1819 build_expr_type_conversion, ): Likewise.
1820 * search.c (check_final_overrider): Likewise.
1821 * cp-tree.h (build_user_type_conversion,
1822 build_operator_new_call, can_convert, can_convert_arg,
1823 can_convert_arg_bad, convert_default_arg,
1824 convert_arg_to_ellipsis, convert_for_arg_passing):
1825 Adjust declaration.
1826
1827 2012-04-22 Jan Hubicka <jh@suse.cz>
1828
1829 * decl2.c (maybe_make_one_only): Mark keyed COMDATs as USED so they
1830 gets finalized.
1831
1832 2012-04-22 Manuel López-Ibåñez <manu@gcc.gnu.org>
1833
1834 PR c/44774
1835 * typeck.c (composite_pointer_type): Likewise.
1836 (cxx_sizeof_or_alignof_type): Likewise.
1837 (cp_build_array_ref): Likewise.
1838 (cp_build_function_call_vec): Likewise.
1839 (cp_build_addr_expr_1): Likewise.
1840 (convert_member_func_to_ptr): Likewise.
1841 * decl.c (check_tag_decl): Likewise.
1842 (check_static_variable_definition): Likewise.
1843 (compute_array_index_type): Likewise.
1844 (create_array_type_for_decl): Likewise.
1845 (grokdeclarator): Likewise.
1846 (grok_op_properties): Likewise.
1847 * error.c (maybe_warn_cpp0x): Likewise.
1848 * pt.c (maybe_process_partial_specialization): Likewise.
1849 (convert_template_argument): Likewise.
1850 (do_decl_instantiation): Likewise.
1851 (do_type_instantiation): Likewise.
1852 * parser.c (cp_parser_primary_expression): Likewise.
1853 (cp_parser_postfix_expression): Likewise.
1854 (cp_parser_unary_expression): Likewise.
1855 (cp_parser_question_colon_clause): Likewise.
1856 (cp_parser_lambda_introducer): Likewise.
1857 (cp_parser_lambda_declarator_opt): Likewise.
1858 (cp_parser_compound_statement): Likewise.
1859 (cp_parser_jump_statement): Likewise.
1860 (cp_parser_declaration_seq_opt): Likewise.
1861 (cp_parser_enum_specifier): Likewise.
1862 (cp_parser_enumerator_list): Likewise.
1863 (cp_parser_initializer_list): Likewise.
1864 (cp_parser_member_declaration): Likewise.
1865 * call.c (build_conditional_expr_1): Likewise.
1866 * friend.c (make_friend_class): Likewise.
1867 * name-lookup.c (pushdecl_maybe_friend_1): Likewise.
1868
1869 2012-04-21 Jan Hubicka <jh@suse.cz>
1870
1871 * method.c (make_alias_for): Do not set TREE_SYMBOL_REFERENCED.
1872 * decl2.c (mark_needed): Likewise.
1873 (decl_needed_p): Do not test TREE_SYMBOL_REFERENCED.
1874
1875 * decl2.c (cxx_callgraph_analyze_expr): Remove.
1876 * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
1877 * cp-tree.h (cxx_callgraph_analyze_expr): Remove.
1878
1879 2012-04-21 Manuel López-Ibåñez <manu@gcc.gnu.org>
1880
1881 PR 35441
1882 * typeck.c (cp_build_function_call_vec): Do not pretty-print
1883 expressions when caret is enabled.
1884
1885 2012-04-20 Jan Hubicka <jh@suse.cz>
1886
1887 PR target/53042
1888 * decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group
1889 list when target has no support for it.
1890
1891 2012-04-20 Michael Matz <matz@suse.de>
1892
1893 * error.c (pedwarn_cxx98): Move va_end call after user
1894 of the va_list.
1895
1896 2012-04-18 Paolo Carlini <paolo.carlini@oracle.com>
1897
1898 PR c++/52422
1899 * cp-tree.h (build_addr_func, decay_conversion,
1900 get_member_function_from_ptrfunc,
1901 build_m_component_ref, convert_member_func_to_ptr):
1902 Add tsubst_flags_t parameter.
1903 * typeck.c (cp_default_conversion): Add.
1904 (decay_conversion, default_conversion,
1905 get_member_function_from_ptrfunc, convert_member_func_to_ptr):
1906 Add tsubst_flags_t parameter and use it throughout.
1907 (cp_build_indirect_ref, cp_build_array_ref,
1908 cp_build_function_call_vec, convert_arguments, build_x_binary_op,
1909 cp_build_binary_op, cp_build_unary_op, build_reinterpret_cast_1,
1910 build_const_cast_1, expand_ptrmemfunc_cst,
1911 convert_for_initialization): Adjust.
1912 * init.c (build_vec_init): Adjust.
1913 * decl.c (grok_reference_init, get_atexit_node): Likewise.
1914 * rtti.c (build_dynamic_cast_1, tinfo_base_init): Likewise.
1915 * except.c (build_throw): Likewise.
1916 * typeck2.c (build_x_arrow): Likewise.
1917 (build_m_component_ref): Add tsubst_flags_t parameter and
1918 use it throughout.
1919 * pt.c (convert_nontype_argument): Adjust.
1920 * semantics.c (finish_asm_stmt, maybe_add_lambda_conv_op): Likewise.
1921 * decl2.c (build_offset_ref_call_from_tree): Likewise.
1922 * call.c (build_addr_func): Add tsubst_flags_t parameter and
1923 use it throughout.
1924 (build_call_a, build_conditional_expr_1, build_new_op_1,
1925 convert_like_real, convert_arg_to_ellipsis, build_over_call,
1926 build_special_member_call): Adjust.
1927 * cvt.c (cp_convert_to_pointer, force_rvalue,
1928 build_expr_type_conversion): Likewise.
1929
1930 2012-04-17 Tom de Vries <tom@codesourcery.com>
1931
1932 * cp-gimplify.c (begin_bc_block): Add location parameter and use as
1933 location argument to create_artificial_label.
1934 (finish_bc_block): Change return type to void. Remove body_seq
1935 parameter, and add block parameter. Append label to STMT_LIST and
1936 return in block.
1937 (gimplify_cp_loop, gimplify_for_stmt, gimplify_while_stmt)
1938 (gimplify_do_stmt, gimplify_switch_stmt): Remove function.
1939 (genericize_cp_loop, genericize_for_stmt, genericize_while_stmt)
1940 (genericize_do_stmt, genericize_switch_stmt, genericize_continue_stmt)
1941 (genericize_break_stmt, genericize_omp_for_stmt): New function.
1942 (cp_gimplify_omp_for): Remove bc_continue processing.
1943 (cp_gimplify_expr): Genericize VEC_INIT_EXPR.
1944 (cp_gimplify_expr): Mark FOR_STMT, WHILE_STMT, DO_STMT, SWITCH_STMT,
1945 CONTINUE_STMT, and BREAK_STMT as unreachable.
1946 (cp_genericize_r): Genericize FOR_STMT, WHILE_STMT, DO_STMT,
1947 SWITCH_STMT, CONTINUE_STMT, BREAK_STMT and OMP_FOR.
1948 (cp_genericize_tree): New function, factored out of ...
1949 (cp_genericize): ... this function.
1950
1951 2012-04-17 Paolo Carlini <paolo.carlini@oracle.com>
1952
1953 PR c++/52599
1954 * semantics.c (build_constexpr_constructor_member_initializers):
1955 Check for function-try-block as function-body.
1956
1957 2012-04-17 Paolo Carlini <paolo.carlini@oracle.com>
1958
1959 PR c++/53003
1960 * parser.c (cp_parser_member_declaration): Check that
1961 initializer_token_start is non null before dereferencing it.
1962
1963 2012-04-16 Jason Merrill <jason@redhat.com>
1964
1965 PR c++/38543
1966 * pt.c (determine_specialization): Instead of comparing the number
1967 of parms, check that tsubst gives the right answer.
1968
1969 PR c++/52008
1970 * pt.c (process_partial_specialization): Complain about a partial
1971 specialization with fewer args than primary template parms.
1972
1973 PR c++/50830
1974 * pt.c (convert_template_argument): Handle template template
1975 argument packs.
1976
1977 PR c++/50303
1978 * pt.c (tsubst_pack_expansion): Use tsubst_expr for template
1979 template parameters.
1980
1981 2012-04-16 Paolo Carlini <paolo.carlini@oracle.com>
1982
1983 PR c++/49152
1984 * call.c (op_error): Print types; when flag_diagnostics_show_caret
1985 is false print expressions too.
1986 (op_error_string): Add.
1987
1988 2012-04-16 Jason Merrill <jason@redhat.com>
1989
1990 PR c++/51148
1991 * friend.c (make_friend_class): Call check_for_bare_parameter_packs.
1992
1993 2012-04-16 Jan Hubicka <jh@suse.cz>
1994
1995 * decl2.c (collect_candidates_for_java_method_alias): Use FOR_EACH
1996 walkers to walk cgraph and varpool.
1997
1998 2012-04-15 Jason Merrill <jason@redhat.com>
1999
2000 PR c++/47220
2001 * pt.c (coerce_template_parameter_pack): Check for error_mark_node.
2002
2003 PR c++/52292
2004 PR c++/52380
2005 * pt.c (coerce_template_parms): Even if we aren't converting we
2006 want to expand argument packs.
2007
2008 PR c++/52706
2009 * mangle.c (write_type): nullptr_t is a builtin type.
2010
2011 2012-04-14 Jan Hubicka <jh@suse.cz>
2012
2013 * tree.c: Update field referenced for new cgraph/varpool layout.
2014 * decl2.c: Likewise.
2015
2016 2012-04-13 Jason Merrill <jason@redhat.com>
2017
2018 PR c++/52824
2019 * pt.c (any_pack_expanson_args_p): New.
2020 (coerce_template_parms): Use it.
2021
2022 PR c++/52905
2023 * call.c (joust): Handle comparing list and non-list ctors.
2024
2025 PR c++/52915
2026 * decl2.c (finish_anon_union): Use cp_finish_decl.
2027 * error.c (dump_function_name): Avoid showing anonymous "name".
2028
2029 2012-04-11 Fabien ChĂȘne <fabien@gcc.gnu.org>
2030
2031 PR c++/52465
2032 * parser.c (cp_parser_class_name): Call strip_using_decl and
2033 return the target decl.
2034 * name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl
2035 to be stripped is NULL_TREE.
2036 (qualify_lookup): Call strip_using_decl and perform some checks on
2037 the target decl.
2038
2039 2012-04-11 Jason Merrill <jason@redhat.com>
2040
2041 PR debug/45088
2042 * decl.c (grokdeclarator): Strip the injected-class-name typedef
2043 if we are building a declaration or compound type.
2044
2045 PR c++/52906
2046 * decl.c (check_tag_decl): Don't complain about attributes if we
2047 don't even have a type.
2048
2049 2012-04-10 Manuel López-Ibåñez <manu@gcc.gnu.org>
2050
2051 * cvt.c (convert_to_void): Update comment.
2052
2053 2012-04-05 Jason Merrill <jason@redhat.com>
2054
2055 PR c++/52596
2056 * semantics.c (finish_non_static_data_member): In templates, pass
2057 the decl to build_qualified_name.
2058 * tree.c (lvalue_kind) [SCOPE_REF]: Handle FIELD_DECL.
2059
2060 2012-04-04 Jason Merrill <jason@redhat.com>
2061
2062 PR c++/52845
2063 * decl.c (finish_function): Update fntype after deducing return type.
2064
2065 2012-04-03 Jason Merrill <jason@redhat.com>
2066
2067 PR c++/52796
2068 * pt.c (tsubst_initializer_list): A pack expansion with no elements
2069 means value-initialization.
2070
2071 2012-04-01 Paolo Carlini <paolo.carlini@oracle.com>
2072
2073 PR c++/50043
2074 * class.c (deduce_noexcept_on_destructor,
2075 deduce_noexcept_on_destructors): New.
2076 (check_bases_and_members): Call the latter.
2077 * decl.c (grokfndecl): Call the former.
2078 * method.c (implicitly_declare_fn): Not static.
2079 * cp-tree.h (deduce_noexcept_on_destructor, implicitly_declare_fn):
2080 Declare
2081
2082 2012-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2083
2084 PR c++/52718
2085 * decl.c (check_default_argument): With -Wzero-as-null-pointer-constant
2086 warn for a zero as null pointer constant default argument.
2087
2088 2012-03-29 Jason Merrill <jason@redhat.com>
2089
2090 PR c++/52685
2091 * tree.c (copy_binfo): Handle BINFO_DEPENDENT_BASE_P.
2092
2093 2012-03-29 Jakub Jelinek <jakub@redhat.com>
2094
2095 PR c++/52759
2096 * decl.c (start_decl): Don't call maybe_apply_pragma_weak
2097 if processing_template_decl.
2098
2099 2012-03-29 Jason Merrill <jason@redhat.com>
2100
2101 PR c++/52743
2102 * call.c (compare_ics): Handle ck_aggr like ck_list.
2103
2104 2012-03-28 Jason Merrill <jason@redhat.com>
2105
2106 PR c++/52746
2107 * typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if
2108 we didn't get an explicit scope.
2109 * pt.c (tsubst_baselink): Likewise.
2110
2111 2012-03-28 Richard Guenther <rguenther@suse.de>
2112
2113 * typeck2.c (process_init_constructor_array): Use the proper
2114 type for computing the array length.
2115
2116 2012-03-27 Meador Inge <meadori@codesourcery.com>
2117
2118 PR c++/52672
2119 * semantics.c (cxx_fold_indirect_ref): Don't attempt to fold
2120 stripped child trees that are not pointer types.
2121
2122 2012-03-21 Jason Merrill <jason@redhat.com>
2123
2124 Implement return type deduction for normal functions with -std=c++1y.
2125 * cp-tree.h (FNDECL_USED_AUTO): New macro.
2126 (LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P): Remove.
2127 (dependent_lambda_return_type_node): Remove.
2128 (CPTI_DEPENDENT_LAMBDA_RETURN_TYPE): Remove.
2129 (struct language_function): Add x_auto_return_pattern field.
2130 (current_function_auto_return_pattern): New.
2131 (enum tsubst_flags): Add tf_partial.
2132 * decl.c (decls_match): Handle auto return comparison.
2133 (duplicate_decls): Adjust error message for auto return.
2134 (cxx_init_decl_processing): Remove dependent_lambda_return_type_node.
2135 (cp_finish_decl): Don't do auto deduction for functions.
2136 (grokdeclarator): Allow auto return without trailing return type in
2137 C++1y mode.
2138 (check_function_type): Defer checking of deduced return type.
2139 (start_preparsed_function): Set current_function_auto_return_pattern.
2140 (finish_function): Set deduced return type to void if not previously
2141 deduced.
2142 * decl2.c (change_return_type): Handle error_mark_node.
2143 (mark_used): Always instantiate functions with deduced return type.
2144 Complain about use if deduction isn't done.
2145 * parser.c (cp_parser_lambda_declarator_opt): Use 'auto' for
2146 initial return type.
2147 (cp_parser_lambda_body): Don't deduce return type in a template.
2148 (cp_parser_conversion_type_id): Allow auto in C++1y.
2149 * pt.c (instantiate_class_template_1): Don't mess with
2150 LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P.
2151 (tsubst_copy_and_build): Likewise.
2152 (fn_type_unification, tsubst): Don't reduce the template parm level
2153 of 'auto' during deduction.
2154 (unify): Compare 'auto' specially.
2155 (get_bindings): Change test.
2156 (always_instantiate_p): Always instantiate functions with deduced
2157 return type.
2158 (do_auto_deduction): Handle error_mark_node and lambda context.
2159 Don't check for use in initializer.
2160 (contains_auto_r): Remove.
2161 * search.c (lookup_conversions_r): Handle auto conversion function.
2162 * semantics.c (lambda_return_type): Handle null return. Don't mess
2163 with dependent_lambda_return_type_node.
2164 (apply_deduced_return_type): Rename from apply_lambda_return_type.
2165 * typeck.c (merge_types): Handle auto.
2166 (check_return_expr): Do auto deduction.
2167 * typeck2.c (add_exception_specifier): Fix complain check.
2168
2169 2012-03-22 Paolo Carlini <paolo.carlini@oracle.com>
2170
2171 PR c++/52487
2172 * class.c (check_field_decls): Call literal_type_p only
2173 on complete types.
2174
2175 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2176
2177 PR c++/52671
2178 * decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION
2179 on CLASS_TYPE_P types.
2180
2181 2012-03-20 Jason Merrill <jason@redhat.com>
2182
2183 * lex.c (init_reswords): Use >= for cxx_dialect test.
2184 * parser.c (cp_parser_exception_specification_opt): Likewise.
2185
2186 * mangle.c (write_type): Handle 'auto'.
2187 * init.c (build_new): Don't do auto deduction where it might
2188 affect template mangling.
2189
2190 PR c++/52510
2191 * decl.c (reshape_init_class): Handle repeated reshaping.
2192 * search.c (lookup_field_1): Add sanity check.
2193
2194 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2195
2196 PR c++/14710
2197 * cp-tree.h (xvalue_p, maybe_warn_about_useless_cast): Declare.
2198 * tree.c (xvalue_p): Define.
2199 * typeck.c (maybe_warn_about_useless_cast): Define.
2200 (build_reinterpret_cast, build_const_cast,
2201 build_static_cast, cp_build_c_cast): Use maybe_warn_about_useless_cast.
2202 * rtti.c (build_dynamic_cast): Likewise.
2203 * pt.c (tsubst_copy_and_build, case CAST_EXPR): Increment/decrement
2204 c_inhibit_evaluation_warnings before/after the build_* calls.
2205
2206 2012-03-15 Jason Merrill <jason@redhat.com>
2207
2208 PR c++/52582
2209 * method.c (implicitly_declare_fn): Set DECL_EXTERNAL.
2210
2211 2012-03-15 Manuel López-Ibåñez <manu@gcc.gnu.org>
2212
2213 PR c++/44783
2214 * error.c (print_instantiation_partial_context): Use
2215 template_backtrace_limit.
2216
2217 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2218
2219 * Make-lang.in (doc/g++.1): Remove IRIX 6.5 reference.
2220
2221 2012-03-14 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR c++/52521
2224 * parser.c (lookup_literal_operator): Return fn only if
2225 processed all arguments from args vector and argtypes is
2226 void_list_node.
2227
2228 2012-01-30 Dodji Seketeli <dodji@redhat.com>
2229
2230 PR c++/51641
2231 * cp-tree.h (template_type_parameter_p): Declare new function.
2232 (parameter_of_template_p): Remove.
2233 * pt.c (template_type_parameter_p): Define new function.
2234 (parameter_of_template_p): Remove.
2235 * name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely
2236 on parameter_of_template_p anymore. Compare the level of the
2237 template parameter to the depth of the template.
2238
2239 2011-12-15 Dodji Seketeli <dodji@redhat.com>
2240
2241 * call.c (standard_conversion, build_integral_nontype_arg_conv)
2242 (build_new_op_1, convert_like_real, is_subseq)
2243 (maybe_handle_implicit_object, maybe_handle_ref_bind, compare_ics)
2244 (joust): Use next_conversion instead of accessing fields of struct
2245 conversion directly.
2246
2247 2012-03-12 Paolo Carlini <paolo.carlini@oracle.com>
2248
2249 PR c++/52299
2250 * pt.c (tsubst_copy_and_build, case COND_EXPR): Avoid bogus
2251 division by zero warnings.
2252
2253 2012-03-08 Paolo Carlini <paolo.carlini@oracle.com>
2254
2255 * typeck.c (build_array_ref, cp_build_addr_expr_1, convert_ptrmem,
2256 build_ptrmemfunc): Consistently forward the tsubst_flags_t
2257 parameter.
2258 * call.c (resolve_args): Likewise.
2259
2260 2012-03-07 Jason Merrill <jason@redhat.com>
2261
2262 PR c++/52521
2263 * mangle.c (write_literal_operator_name): The length comes after the
2264 operator prefix.
2265
2266 2012-03-05 Jakub Jelinek <jakub@redhat.com>
2267
2268 * pt.c (local_specializations): Change from htab_t into
2269 struct pointer_map_t *.
2270 (retrieve_local_specializations, register_local_specialization,
2271 tsubst_pack_expansion, instantiate_decl): Adjust users.
2272 (eq_local_specializations, hash_local_specialization): Remove.
2273
2274 2012-03-05 Jason Merrill <jason@redhat.com>
2275
2276 PR c++/51930
2277 * decl2.c (determine_visibility): Correct calculation of class
2278 args depth.
2279 * decl.c (check_tag_decl): Adjust warning.
2280
2281 * method.c (synthesized_method_walk): Cleanups don't affect the EH
2282 spec either.
2283
2284 2012-03-03 Jason Merrill <jason@redhat.com>
2285
2286 * init.c (perform_member_init): Cope with uninstantiated NSDMI.
2287
2288 Core 1270
2289 * call.c (build_aggr_conv): Call reshape_init.
2290 (convert_like_real): Likewise.
2291 * typeck2.c (process_init_constructor): Clear TREE_CONSTANT if
2292 not all constant.
2293
2294 * mangle.c (write_nested_name): Use decl_mangling_context.
2295 (write_prefix, write_template_prefix): Likewise.
2296
2297 PR c++/36797
2298 * mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR.
2299
2300 * class.c (add_method): Always build an OVERLOAD for using-decls.
2301 * search.c (lookup_member): Handle getting an OVERLOAD for a
2302 single function.
2303
2304 2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
2305
2306 PR c++/51989
2307 * typeck2.c (build_x_arrow): Take a tsubst_flags_t argument and
2308 propagate it.
2309 * cp-tree.h (build_x_arrow): Adjust prototype.
2310 * pt.c (tsubst_copy_and_build): Adjust call.
2311 * parser.c (cp_parser_postfix_dot_deref_expression): Likewise.
2312
2313 2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
2314
2315 * name-lookup.c (binding_to_template_parms_of_scope_p): Clean up.
2316
2317 2012-02-29 Jason Merrill <jason@redhat.com>
2318
2319 PR c++/51930
2320 * decl.c (check_tag_decl): Move warning for misplaced attributes here.
2321 (shadow_tag): From here.
2322 * parser.c (cp_parser_explicit_instantiation): Don't warn here.
2323
2324 2012-02-21 Jakub Jelinek <jakub@redhat.com>
2325
2326 PR c++/52312
2327 * typeck.c (check_literal_operator_args): Initialize *long_double_p
2328 and *long_long_unsigned_p even if processing_template_decl.
2329
2330 2012-02-16 Jason Merrill <jason@redhat.com>
2331
2332 PR c++/52248
2333 * decl.c (define_label): Use timevar_cond_start/stop.
2334
2335 2012-02-16 Fabien ChĂȘne <fabien@gcc.gnu.org>
2336
2337 PR c++/52126
2338 * decl.c (xref_basetypes): call dependent_scope_p instead of
2339 dependent_type_p.
2340
2341 2012-02-16 Jason Merrill <jason@redhat.com>
2342
2343 PR c++/51415
2344 * error.c (dump_expr): Handle lambda closures specifically.
2345
2346 2012-02-14 Jason Merrill <jason@redhat.com>
2347
2348 * parser.c (cp_parser_explicit_instantiation): Give a warning
2349 for ignored attributes on explicit class instantiation.
2350
2351 2012-02-14 Jakub Jelinek <jakub@redhat.com>
2352
2353 PR c++/52247
2354 * pt.c (tsubst_copy_asm_operands): For LABEL_DECL values call
2355 lookup_label on label's name and set TREE_USED.
2356
2357 2012-02-14 Jason Merrill <jason@redhat.com>
2358
2359 PR c++/39055
2360 * decl.c (local_variable_p_walkfn): Don't check DECL_ARTIFICIAL.
2361
2362 2012-02-14 Jakub Jelinek <jakub@redhat.com>
2363
2364 PR c/52181
2365 * decl.c (duplicate_decls): If olddecl has bigger DECL_ALIGN than
2366 newdecl, copy DECL_ALIGN to newdecl and or DECL_USER_ALIGN bits.
2367
2368 2012-02-07 Jason Merrill <jason@redhat.com>
2369
2370 PR c++/51675
2371 * semantics.c (cx_check_missing_mem_inits): Handle unions.
2372 Fix constexpr default constructor logic.
2373
2374 PR c++/52035
2375 * pt.c (tsubst): Strip uninstantiated typedef.
2376
2377 2012-02-06 Jason Merrill <jason@redhat.com>
2378
2379 PR c++/52088
2380 * cvt.c (build_expr_type_conversion): Check for template conversion.
2381
2382 2012-01-31 Jason Merrill <jason@redhat.com>
2383
2384 PR c++/52043
2385 * cp-tree.h (PACK_EXPANSION_LOCAL_P): New.
2386 * pt.c (make_pack_expansion, tsubst_initializer_list): Set it.
2387 (tsubst_pack_expansion): Check it.
2388
2389 2012-01-29 Paolo Carlini <paolo.carlini@oracle.com>
2390
2391 PR c++/51327
2392 * class.c (explain_non_literal_class): Correctly handle implicitly
2393 deleted constructors.
2394
2395 2012-01-27 Jakub Jelinek <jakub@redhat.com>
2396
2397 PR c++/51852
2398 * pt.c (tsubst_pack_expansion): Delete and restore
2399 local_specialization whenever need_local_specialization, not just
2400 when saved_local_specializations is non-NULL.
2401
2402 2012-01-26 Paolo Carlini <paolo.carlini@oracle.com>
2403
2404 PR c++/51370
2405 * error.c (dump_decl, [TEMPLATE_ID_EXPR]): Handle error_mark_node
2406 as TREE_OPERAND (t, 1).
2407
2408 2012-01-24 Jason Merrill <jason@redhat.com>
2409
2410 PR c++/51917
2411 * decl.c (xref_basetypes): Check VEC_length instead of VEC_space.
2412
2413 PR c++/51973
2414 * tree.c (called_fns_equal): Check template args.
2415 (cp_tree_equal): Call it.
2416
2417 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
2418 Patrick Marlier <patrick.marlier@gmail.com>
2419
2420 PR c++/51928
2421 * class.c (set_method_tm_attributes): Use TARGET_THUNK instead of
2422 thunk for set_one_vmethod_tm_attributes.
2423
2424 2012-01-24 Paolo Carlini <paolo.carlini@oracle.com>
2425
2426 PR c++/51223
2427 * call.c (build_over_call): Check for error_mark_node as
2428 TREE_VALUE when default arguments are processed.
2429
2430 2012-01-23 Jason Merrill <jason@redhat.com>
2431
2432 PR c++/51930
2433 * decl2.c (determine_visibility): Check for visibility attribute
2434 on template specialization.
2435
2436 2012-01-23 Paolo Carlini <paolo.carlini@oracle.com>
2437
2438 PR c++/51398
2439 * pt.c (parameter_of_template_p): Skip error_mark_node parameters.
2440
2441 2012-01-23 Jason Merrill <jason@redhat.com>
2442
2443 PR c++/51925
2444 * class.c (add_method): Set OVL_USED for using-decls.
2445 * tree.c (ovl_scope): New.
2446 * cp-tree.h: Declare it.
2447 * parser.c (cp_parser_template_name): Use it.
2448 * semantics.c (baselink_for_fns): Likewise.
2449 * name-lookup.c (set_inherited_value_binding_p): Likewise.
2450
2451 2012-01-20 Paolo Carlini <paolo.carlini@oracle.com>
2452
2453 PR c++/51402
2454 * pt.c (lookup_template_class_1): Check context returned by
2455 tsubst for error_mark_node.
2456
2457 2012-01-19 Kai Tietz <ktietz@redhat.com>
2458
2459 PR c++/51344
2460 * decl2.c (save_template_attributes): Use merge_attributes
2461 instead of chaining up via TREE_CHAIN.
2462
2463 2012-01-19 Jason Merrill <jason@redhat.com>
2464
2465 PR c++/51889
2466 * class.c (finish_struct): Call add_method here for function usings.
2467 * semantics.c (finish_member_declaration): Not here.
2468
2469 2012-01-18 Paolo Carlini <paolo.carlini@oracle.com>
2470
2471 PR c++/51225
2472 * typeck2.c (store_init_value): Within a template guard
2473 cxx_constant_value with require_potential_constant_expression.
2474 * pt.c (convert_nontype_argument): Likewise.
2475
2476 2012-01-16 Jakub Jelinek <jakub@redhat.com>
2477
2478 PR c++/51854
2479 * mangle.c (write_template_arg_literal): Handle complex.
2480
2481 2012-01-16 Jason Merrill <jason@redhat.com>
2482
2483 PR c++/51827
2484 * mangle.c (mangle_decl): Don't mangle uninstantiated templates.
2485
2486 PR c++/51868
2487 * typeck.c (build_static_cast_1): Handle bit-fields properly.
2488
2489 2012-01-13 Ian Lance Taylor <iant@google.com>
2490
2491 PR c++/50012
2492 * typeck.c (enum_cast_to_int): New static function.
2493 (cp_build_binary_op): When handling warn_sign_compare, don't test
2494 for TREE_NO_WARNING. Do call enum_cast_to_int.
2495 * call.c (avoid_sign_compare_warnings): Remove static function.
2496 (build_new_op_1): Don't call avoid_sign_compare_warnings.
2497
2498 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
2499
2500 * decl2.c: Do not include tree-mudflap.h
2501 * semantics.c: Likewise.
2502
2503 2012-01-13 Jason Merrill <jason@redhat.com>
2504
2505 PR c++/20681
2506 * semantics.c (finish_break_stmt): Avoid adding an unreachable
2507 BREAK_STMT.
2508
2509 PR c++/51813
2510 * decl2.c (constrain_visibility): Clear DECL_VISIBILITY_SPECIFIED
2511 when reducing the visibility.
2512
2513 PR c++/51620
2514 * class.c (build_vtbl_initializer): Use __cxa_deleted_virtual.
2515
2516 2012-01-12 Jason Merrill <jason@redhat.com>
2517
2518 PR c++/51714
2519 * pt.c (value_dependent_expression_p): Treat STMT_EXPR as
2520 value-dependent.
2521
2522 2012-01-13 Dodji Seketeli <dodji@redhat.com>
2523
2524 PR c++/51633
2525 * semantics.c (cp_parser_ctor_initializer_opt_and_function_body):
2526 Set the pointer to the last block of the constructor to the
2527 current statement.
2528 (build_constexpr_constructor_member_initializers): Get
2529 build_data_member_initialization a chance to deal with more
2530 statements before we choke.
2531
2532 2012-01-12 Jason Merrill <jason@redhat.com>
2533
2534 PR c++/48051
2535 * mangle.c (write_expression): Mangle BASELINK scope if
2536 BASELINK_QUALIFIED_P.
2537 * search.c (adjust_result_of_qualified_name_lookup): Set
2538 BASELINK_QUALIFIED_P.
2539 * tree.c (cp_tree_equal) [BASELINK]: Compare BASELINK_QUALIFIED_P.
2540 * parser.c (cp_parser_postfix_dot_deref_expression): Don't call
2541 adjust_result_of_qualified_name_lookup for non-qualified names.
2542
2543 PR c++/51403
2544 * pt.c (unify): Handle error_mark_node.
2545
2546 2012-01-11 Jason Merrill <jason@redhat.com>
2547
2548 PR c++/51565
2549 * call.c (standard_conversion): For ptrmemfuncs, compare the
2550 static_fn_types.
2551
2552 PR c++/51818
2553 * mangle.c (find_substitution): A type is only a substitution
2554 match if we're looking for a type.
2555 (write_nested_name): Use decl_mangling_context.
2556
2557 * decl.c (decls_match): Assert that the arguments are decls.
2558
2559 PR c++/51613
2560 * pt.c (resolve_overloaded_unification): Compare types with
2561 same_type_p, not decls_match.
2562
2563 2012-01-10 Jason Merrill <jason@redhat.com>
2564
2565 PR c++/51614
2566 * class.c (build_base_path): Diagnose ambiguous base.
2567
2568 PR c++/51433
2569 * semantics.c (cxx_eval_call_expression): Always retry previously
2570 non-constant expressions.
2571
2572 2012-01-06 Jason Merrill <jason@redhat.com>
2573
2574 DR 686
2575 PR c++/47450
2576 * parser.c (cp_parser_new_expression): Set
2577 type_definition_forbidden_message.
2578
2579 PR c++/6057
2580 PR c++/48051
2581 PR c++/50855
2582 PR c++/51322
2583 * mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR,
2584 THROW_EXPR, CONSTRUCTOR, OVERLOAD. Fix PREINCREMENT_EXPR and
2585 PREDECREMENT_EXPR.
2586 (write_template_arg): Fix mangling of class-scope functions and
2587 argument packs.
2588 (mangle_decl): Update suggested -fabi-version argument.
2589 * operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR,
2590 DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR.
2591 * tree.c (dependent_name): No longer static.
2592 * cp-tree.h: Declare it.
2593 * pt.c (unify): Defer handling of unconverted functions.
2594
2595 * mangle.c (mangle_decl): Don't generate mangling aliases
2596 for maybe-in-charge [cd]tors.
2597
2598 * error.c (dump_expr): Print type of CONSTRUCTOR.
2599
2600 2012-01-05 Dodji Seketeli <dodji@redhat.com>
2601
2602 PR c++/51541
2603 * parser.c (cp_parser_alias_declaration): Get out early upon
2604 errors in the identifier or the attributes.
2605
2606 2012-01-04 Paolo Carlini <paolo.carlini@oracle.com>
2607
2608 PR c++/51064
2609 * pt.c (tsubst_copy_and_build): Maybe set TREE_NO_WARNING on
2610 the tree returned by build_x_binary_op.
2611
2612 2012-01-03 Paolo Carlini <paolo.carlini@oracle.com>
2613
2614 PR c++/51738
2615 * parser.c (cp_parser_postfix_open_square_expression): Handle
2616 postfix-expression [ braced-init-list ].
2617
2618 2012-01-03 Paolo Carlini <paolo.carlini@oracle.com>
2619
2620 PR c++/29273
2621 * rtti.c (build_dynamic_cast_1): In case of T a pointer type,
2622 call decay_conversion on v.
2623
2624 2012-01-03 Paolo Carlini <paolo.carlini@oracle.com>
2625
2626 PR c++/15867
2627 * decl.c (duplicate_decls): With -Wredundant-decls don't warn for
2628 declaration followed by specialization.
2629
2630 2012-01-03 Jakub Jelinek <jakub@redhat.com>
2631
2632 PR c++/51669
2633 * semantics.c (finish_omp_clauses): Call fold_build_cleanup_point_expr
2634 on OMP_CLAUSE_{IF,FINAL,NUM_THREADS,SCHEDULE_CHUNK}_EXPR.
2635
2636 2012-01-02 Jason Merrill <jason@redhat.com>
2637
2638 DR 1359
2639 PR c++/51675
2640 * method.c (walk_field_subobs): Don't check for uninitialized
2641 fields in a union.
2642 (synthesized_method_walk): Check here.
2643
2644 DR 325
2645 PR c++/51666
2646 * parser.c (cp_parser_cache_defarg): Split out...
2647 (cp_parser_parameter_declaration): ...from here.
2648 (cp_parser_save_nsdmi): Use it.
2649 (cp_parser_cache_group): Remove CPP_COMMA support.
2650
2651 2012-01-02 Dodji Seketeli <dodji@redhat.com>
2652
2653 PR c++/51462
2654 * semantics.c (cx_check_missing_mem_inits): Don't assert in case
2655 of error.
2656
2657 2012-01-02 Paolo Carlini <paolo.carlini@oracle.com>
2658
2659 PR c++/20140
2660 * typeck2.c (digest_init_r): Use copy_init when initializing
2661 an array of chars.
2662
2663 2012-01-01 Paolo Carlini <paolo.carlini@oracle.com>
2664
2665 PR c++/16603
2666 * decl.c (build_enumerator): Don't call perform_integral_promotions
2667 on the value.
2668
2669 2012-01-01 Paolo Carlini <paolo.carlini@oracle.com>
2670
2671 PR c++/51379
2672 * typeck.c (build_reinterpret_cast_1): Implement resolution of
2673 DR 799.
2674
2675 2012-01-01 Fabien ChĂȘne <fabien@gcc.gnu.org>
2676
2677 * parser.c (cp_parser_using_declaration): Add a warning about
2678 deprecated access declarations when no errors were encountered
2679 while parsing the access declaration. Save the first token in
2680 order to emit the warning at the right place.
2681 \f
2682 Copyright (C) 2012 Free Software Foundation, Inc.
2683
2684 Copying and distribution of this file, with or without modification,
2685 are permitted in any medium without royalty provided the copyright
2686 notice and this notice are preserved.