1 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5 * call.c (build_new_op): Save the original codes of operands
8 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
10 * cp-tree.h: Remove the prototype for insert_block.
11 * decl.c (insert_block): Remove.
13 2009-04-16 Ian Lance Taylor <iant@google.com>
15 * cp-tree.h (enum tsubst_flags): Rename from enum tsubst_flags_t.
16 (tsubst_flags_t): Change typedef from enum type to int.
18 2009-04-16 Le-Chun Wu <lcwu@google.com>
20 * decl.c (check_initializer): Use TYPE_VECTOR_OPAQUE
21 instead of targetm.vector_opaque_p.
23 2009-04-15 Le-Chun Wu <lcwu@google.com>
26 * call.c (build_over_call): Set TREE_NO_WARNING on the
27 compiler-generated INDIRECT_REF expression.
28 * cvt.c (convert_to_void): Emit warning when stripping off
31 2009-04-14 Diego Novillo <dnovillo@google.com>
33 * parser.c (cp_parser_type_specifier_seq): Move call to
34 invoke_plugin_callbacks ...
35 (cp_parser_type_specifier_seq): ... here.
37 2009-04-14 Le-Chun Wu <lcwu@google.com>
39 * Make-lang.in: Modify dependencies of files including plugin.h.
40 * decl.c (finish_function): Call invoke_plugin_callbacks.
41 * parser.c (cp_parser_type_specifier): Call invoke_plugin_callbacks.
43 2009-04-14 Jason Merrill <jason@redhat.com>
46 * name-lookup.c (pushdecl_maybe_friend): Avoid all warnings
47 about shadowing by tentative parms.
49 2009-04-13 Jason Merrill <jason@redhat.com>
52 * call.c (build_over_call): Don't call memcpy if the target is
53 the same as the source.
55 2009-04-13 Jason Merrill <jason@redhat.com>
58 * pt.c (uses_template_parms): Handle CONSTRUCTOR.
60 2009-04-12 Jason Merrill <jason@redhat.com>
63 * call.c (joust): Don't crash on variadic fn.
65 2009-04-10 Jason Merrill <jason@redhat.com>
68 * parser.c (cp_parser_skip_to_end_of_block_or_statement): Return
69 if we see a close brace without an open brace.
71 2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
73 * parser.c (cp_parser_class_specifier): Remove the unused
74 has_trailing_semicolon.
76 2009-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
79 * parser.c (cp_parser_check_template_parameters): Take a
80 cp_declarator parameter.
81 (cp_parser_elaborated_type_specifier): Update to
82 cp_parser_check_template_parameters.
83 (cp_parser_class_head): Likewise.
84 (cp_parser_check_declarator_template_parameters): Likewise.
85 (cp_parser_check_template_parameters): Handle first the non-error
86 conditions. Give more accurate diagnostics if a declarator is
89 2009-04-08 Jason Merrill <jason@redhat.com>
92 * error.c (dump_aggr_type): Chase template typedefs if
93 -fno-pretty-templates.
95 2009-04-08 Dodji Seketeli <dodji@redhat.com>
98 * parser.c (cp_parser_enumerator_definition): Make sure the
99 initializer of the enumerator doesn't contain any bare parameter pack.
101 2009-04-07 Jason Merrill <jason@redhat.com>
104 * name-lookup.c (merge_functions): Keep multiple extern "C" functions.
105 * call.c (joust): Complain about mismatched default arguments
106 in extern "C" functions.
107 * class.c (resolve_address_of_overloaded_function): Handle multiple
108 extern "C" functions.
109 * pt.c (resolve_overloaded_unification): Likewise.
111 2009-04-07 Jason Merrill <jason@redhat.com>
114 * error.c (dump_function_decl): Don't pretty-print templates
115 if -fno-pretty-templates.
116 (count_non_default_template_args): Print all args if
117 -fno-pretty-templates.
119 2009-04-06 Jason Merrill <jason@redhat.com>
122 * pt.c (fn_type_unification): For DEDUCE_EXACT check that
123 the deduced template arguments give us the parameter types
126 2009-04-05 Giovanni Bajo <giovannibajo@libero.it>
127 Jason Merrill <jason@redhat.com>
130 * error.c (count_non_default_template_args): New fn.
131 (dump_template_parms): Call it.
132 (dump_template_argument_list): Call it. Add parms parm.
133 (dump_template_argument): Adjust call to dump_template_argument_list.
134 (dump_type, dump_decl): Likewise.
135 (dump_template_bindings): Refactor logic.
137 2009-04-03 Jason Merrill <jason@redhat.com>
140 * error.c (dump_template_bindings): Look through typedefs in
142 (dump_type) [TYPENAME_TYPE]: Print the typedef name if any.
143 (find_typenames_r): Also collect typedefs.
144 * pt.c (unify): Strip typedefs.
147 * semantics.c (finish_id_expression): Don't assume a dependent
148 member of the current instantiation isn't a valid integral
149 constant expression. Check dependent_scope_p.
150 * pt.c (dependent_scope_p): Check TYPE_P.
151 (tsubst_copy): If args is null, just return.
153 2009-04-02 Jason Merrill <jason@redhat.com>
156 * error.c (find_typenames, find_typenames_r): New fns.
157 (dump_function_decl): Call find_typenames.
158 (dump_template_bindings): Print typenames as well.
159 * pt.c (tsubst): Non-static.
160 * cp-tree.h: Declare it.
162 2009-04-02 Dodji Seketeli <dodji@redhat.com>
165 * decl2.c (grokfield): when a typedef appears in a
166 class, create the typedef variant type node for it.
167 (save_template_attributes): Creating typedef variant type node
169 * decl.c (grokdeclarator): If the typedef'ed struct/class was
170 anonymous, set the proper type name to all its type variants.
171 (xref_basetypes) : Fixup the variant types after setting
173 * name-lookup.c (pushdecl_maybe_friend): Reuse the
174 set_underlying_type function to install typedef variant types.
175 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
177 (append_type_to_template_for_access_check): New entry points.
178 * semantics.c (check_accessibility_of_qualified_id):
179 When a typedef that is a member of a class appears in a template,
180 add it to the template. It will be ...
181 * class.c (finish_struct_bits): Split type variant fixup into ...
182 (fixup_type_variants): A new entry point.
183 * pt.c (instantiate_class_template, instantiate_template ): ... access
184 checked at template instantiation time.
185 (resolve_type_name_type): The type name should be the name of the
187 (retrieve_specialization): Specializations of template typedefs aren't
188 to looked up in DECL_TEMPLATE_INSTANTIATIONS (tmpl).
189 (append_type_to_template_for_access_check): New entry point.
190 (tsubst_decl): For typedefs, build the variant type from the correct
192 (get_class_bindings): Fix function comment.
193 (perform_typedefs_access_check): New entry point.
195 2009-03-31 Jason Merrill <jason@redhat.com>
198 * name-lookup.c (pushdecl_maybe_friend): Diagnose mismatched
199 extern "C" declarations.
202 * semantics.c (finish_non_static_data_member): Allow such references
203 without an associated object in sizeof/decltype/alignof.
205 * ptree.c (cxx_print_decl): Pretty-print full name of
207 (cxx_print_type): Pretty-print full name of class.
209 * decl.c (grokdeclarator): Reject pointer to qualified function
212 PR c++/37806, core issue 547
213 * typeck.c (cp_apply_type_quals_to_decl): Don't apply any quals
215 * tree.c (cp_build_qualified_type_real): Don't apply restrict to a
217 * decl.h (enum decl_context): Add TEMPLATE_TYPE_ARG.
218 * decl.c (groktypename): Add is_template_arg parameter.
219 (grokdeclarator): Allow function cv-quals on a template type arg.
220 * parser.c (cp_parser_new_type_id, cp_parser_type_id): Add
221 is_template_arg argument in calls to groktypename.
222 * cp-tree.h: Adjust prototype.
223 * error.c (dump_type_prefix, dump_type_suffix): Fix plain
224 FUNCTION_TYPE printing.
226 * mangle.c (write_expression): Mangle dependent name as
229 PR c++/38030, 38850, 39070
230 * pt.c (type_dependent_expression_p_push): New fn.
231 (tsubst_copy_and_build) [CALL_EXPR]: Only do arg-dep lookup when the
232 substitution makes the call non-dependent. Preserve koenig_p.
233 * parser.c (cp_parser_postfix_expression): Only do arg-dep lookup
234 for non-dependent calls.
235 * semantics.c (finish_call_expr): Revert earlier changes.
236 * cp-tree.h: Revert change to finish_call_expr prototype.
238 2009-03-29 Joseph Myers <joseph@codesourcery.com>
240 PR preprocessor/34695
241 * cp-tree.h (cp_cpp_error): Remove.
242 * error.c (cp_cpp_error): Remove.
243 * parser.c (cp_lexer_new_main): Set done_lexing instead of
244 client_diagnostic and error callback.
246 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
248 * cp/cp-objcp-common.h (LANG_HOOKS_STATICP): Remove.
249 * cp/cp-objcp-common.c (cxx_staticp): Remove.
250 * cp/cp-tree.h (cxx_staticp): Remove.
252 2009-03-28 Jakub Jelinek <jakub@redhat.com>
255 * parser.c (cp_parser_postfix_expression): Don't call
256 warning_if_disallowed_function_p.
258 2009-03-27 Jan Hubicka <jh@suse.cz>
260 * except.c (choose_personality_routine): Set terminate_node to abort
263 2009-03-27 Dodji Seketeli <dodji@redhat.com>
264 Jakub Jelinek <jakub@redhat.com>
267 * cp-objcp-common.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
268 (cp_function_decl_explicit_p): New prototype.
269 * cp-objcp-common.c (cp_function_decl_explicit_p): New function.
271 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
274 * parser.c (cp_parser_elaborated_type_specifier): If we have a
275 typename tag and don't have either a TYPE_DECL or a
276 TEMPLATE_ID_EXPR, set the type to NULL.
278 2009-03-27 Simon Martin <simartin@users.sourceforge.net>
281 * decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
284 2009-03-27 Simon Martin <simartin@users.sourceforge.net>
287 * decl.c (check_array_designated_initializer): Handle error_mark_node.
289 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
292 * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum.
294 2009-03-26 Andrew Haley <aph@redhat.com>
297 * decl2.c (possibly_inlined_p): If java exceptions are in use
298 don't inline a decl unless it is explicitly marked inline.
299 * lex.c: (pragma_java_exceptions): New variable.
300 (handle_pragma_java_exceptions): Set pragma_java_exceptions.
301 * cp-tree.h (pragma_java_exceptions): Declare new variable.
303 2009-03-24 Jason Merrill <jason@redhat.com>
306 * name-lookup.c (pushdecl_maybe_friend): Check default args later.
308 2009-03-23 Jakub Jelinek <jakub@redhat.com>
311 * semantics.c (handle_omp_for_class_iterator): Swap cond operands and
312 code if iter is the second operand.
313 * parser.c (cp_parser_binary_expression): Add no_toplevel_fold_p
314 argument. If it is set, don't build the toplevel expression with
315 build_x_binary_op, but build2.
316 (cp_parser_assignment_expression, cp_parser_omp_for_incr): Adjust
318 (cp_parser_omp_for_cond): Don't assume the first operand of the
319 comparison must be decl.
321 2009-03-23 Jason Merrill <jason@redhat.com>
324 * pt.c (make_fnparm_pack): Split out from...
325 (instantiate_decl): ...here.
326 (tsubst_pack_expansion): Handle being called in a late-specified
330 * name-lookup.c (pushdecl_maybe_friend): Don't warn about shadowing
333 2009-03-20 Jason Merrill <jason@redhat.com>
336 * parser.c (cp_parser_direct_declarator): In a template, wrap
337 non-constant expression in NOP_EXPR with TREE_SIDE_EFFECTS set.
338 * pt.c (tsubst): Preserve it in a partial instantiation.
339 (dependent_type_p_r): Don't check value_dependent_expression_p.
340 * decl.c (compute_array_index_type): Don't check
341 value_dependent_expression_p if TREE_SIDE_EFFECTS.
344 * typeck2.c (check_narrowing): Don't complain about loss of
345 precision when converting a floating-point constant.
347 2009-03-19 Jakub Jelinek <jakub@redhat.com>
350 * parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL.
351 (cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond.
353 2009-03-18 Jakub Jelinek <jakub@redhat.com>
355 * parser.c (struct cp_token): Reorder fields for 64-bit hosts.
358 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
361 * parser.c (cp_parser_explicit_specialization): Don't skip the
362 rest of the specialization when begin_specialization returns
365 2009-03-17 Jason Merrill <jason@redhat.com>
367 * decl.c (grokfndecl): Set DECL_CONTEXT on parms.
368 (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms.
369 * pt.c (check_explicit_specialization): Likewise.
370 (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a
371 local specialization.
372 * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name.
373 * decl2.c (parm_index): New fn.
374 * semantics.c (finish_decltype_type): Don't use describable_type.
375 * mangle.c (write_expression): Likewise. Mangle ALIGNOF_EXPR.
376 Give a sorry for unsupported codes rather than crash. Mangle
377 conversions with other than 1 operand. New mangling for PARM_DECL.
378 * operators.def (ALIGNOF_EXPR): Mangle as "az".
380 2009-03-17 Jing Yu <jingyu@google.com>
383 * method.c (use_thunk): Change is_thunk from crtl to cfun.
385 2009-03-17 Paolo Carlini <paolo.carlini@oracle.com>
388 * semantics.c (check_trait_type): New.
389 (finish_trait_expr): Use it.
391 2009-03-17 Jakub Jelinek <jakub@redhat.com>
393 * name-lookup.c (cp_emit_debug_info_for_using): Emit USING_STMTs
394 instead of calling imported_module_or_decl debug hook if
395 building_stmt_tree ().
396 * cp-gimplify.c (cp_gimplify_expr): Don't assert the first operand
400 * name-lookup.c (do_namespace_alias): Don't call global_decl debug
401 hook at function scope.
404 * cp-gimplify.c (cp_gimplify_expr): Don't set DECL_NAME
407 2009-03-09 Jakub Jelinek <jakub@redhat.com>
410 * semantics.c (finish_switch_cond): Don't call get_unwidened.
411 * decl.c (finish_case_label): Pass SWITCH_STMT_TYPE as 3rd argument
412 instead of TREE_TYPE (cond).
414 2009-03-08 H.J. Lu <hongjiu.lu@intel.com>
417 * parser.c (cp_parser_late_parsing_default_args): Continue
418 the loop when cp_parser_assignment_expression returns
421 2009-03-07 Jason Merrill <jason@redhat.com>
424 * init.c (build_new_1): Don't use a VLA type.
425 (build_vec_init): Handle getting a pointer for BASE.
427 2009-03-06 H.J. Lu <hongjiu.lu@intel.com>
430 * cp-tree.h: Check NO_DOT_IN_LABEL before NO_DOLLAR_IN_LABEL
431 when mangling symbols.
433 2009-03-06 Paolo Carlini <paolo.carlini@oracle.com>
436 * error.c (dump_expr): Don't try to print THROW_EXPRs in full.
438 2009-03-06 Alexandre Oliva <aoliva@redhat.com>
440 * decl.c (record_builtin_java_type): Use canonicalized integer
443 2009-03-04 Jason Merrill <jason@redhat.com>
446 * class.c (is_really_empty_class): New fn.
447 * cp-tree.h: Declare it.
448 * cp-objcp-common.c (cp_expr_size): Use it.
451 * semantics.c (perform_koenig_lookup): Handle TEMPLATE_ID_EXPR.
452 * parser.c (cp_parser_postfix_expression): Call it for
454 * tree.c (is_overloaded_fn): Look through TEMPLATE_ID_EXPR.
455 (get_first_fn): Likewise.
461 * decl.c (make_typename_type): Do look inside currently open classes.
462 * parser.c (cp_parser_lookup_name): Likewise.
463 (cp_parser_template_name): Likewise.
464 * pt.c (dependent_scope_p): New function.
465 * cp-tree.h: Declare it.
466 * class.c (currently_open_class): Return fast if T isn't a class.
468 2009-02-26 H.J. Lu <hongjiu.lu@intel.com>
471 * parser.c (cp_parser_mem_initializer): Return error_mark_node
472 if cp_parser_mem_initializer_id returns error_mark_node.
474 2009-02-24 Richard Guenther <rguenther@suse.de>
477 * pt.c (instantiate_decl): Do not instantiate extern, non-inline
480 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
483 * pt.c (coerce_template_template_parms): Return 0 if parameter
486 2009-02-23 Jason Merrill <jason@redhat.com>
488 * pt.c (unify): Call maybe_adjust_types_for_deduction when
489 deducing from an initializer list.
491 2009-02-20 Jason Merrill <jason@redhat.com>
494 * decl.c (grokdeclarator): Handle ~identifier.
496 2009-02-19 Jakub Jelinek <jakub@redhat.com>
499 * decl2.c (determine_visibility): If visibility changed and
500 DECL_RTL has been already set, call make_decl_rtl to update symbol
503 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
506 * cp-tree.h (maybe_commonize_var): New.
508 * decl.c (maybe_commonize_var): Make it extern.
510 * decl2.c (finish_anon_union): Call maybe_commonize_var.
512 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
515 * parser.c (cp_parser_enum_specifier): Apply all attributes.
517 2009-02-18 Jason Merrill <jason@redhat.com>
519 * cfns.h: Tweak pathname for cfns.gperf.
521 2009-02-13 Jason Merrill <jason@redhat.com>
524 * semantics.c (finish_call_expr): Change koenig_p parm to int.
525 If -1, don't set KOENIG_LOOKUP_P but do keep hidden candidates.
526 * cp-tree.h: Adjust prototype.
527 * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Pass -1.
529 2009-02-12 Jason Merrill <jason@redhat.com>
532 * pt.c (unify)[TEMPLATE_PARM_INDEX]: Convert to the tsubsted type.
534 2009-02-11 Jason Merrill <jason@redhat.com>
537 * decl2.c (cp_write_global_declarations):
538 Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
541 * init.c (build_value_init_noctor): Split out from...
542 (build_value_init): ...here.
543 (expand_aggr_init_1): Handle value-initialization.
544 * cp-tree.h: Add declaration.
545 * class.c (type_has_user_provided_constructor):
546 Handle non-class arguments.
548 2009-02-10 Jason Merrill <jason@redhat.com>
551 * class.c (defaultable_fn_p): Handle ... properly.
554 * tree.c (lvalue_p_1): Condition rvalue ref handling on
555 treat_class_rvalues_as_lvalues, too.
557 2009-02-10 Paolo Carlini <paolo.carlini@oracle.com>
560 * typeck.c (build_x_array_ref): New.
561 * cp-tree.h: Declare it.
562 * pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.
564 2009-02-09 Jason Merrill <jason@redhat.com>
567 * semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
568 * init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
569 * tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
570 * cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
571 for build_value_init TARGET_EXPR.
572 * cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.
574 2009-02-06 Paolo Carlini <paolo.carlini@oracle.com>
578 * cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Check TREE_VEC_LENGTH.
580 2009-02-04 Jakub Jelinek <jakub@redhat.com>
583 * operators.def: Use COMPONENT_REF code for ->/pt operator again,
584 remove ./dt operator.
585 * mangle.c (write_expression): Handle COMPONENT_REF after handling
586 ADDR_EXPR, for COMPONENT_REF without ARROW_EXPR inside of it
587 write_string ("dt") instead of using operators.def.
589 2009-02-03 Jason Merrill <jason@redhat.com>
591 * typeck.c (cp_build_unary_op): Only complain about taking address
594 2009-02-03 Jakub Jelinek <jakub@redhat.com>
597 * parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.
600 * typeck2.c (digest_init_r): Don't call process_init_constructor
603 2009-02-03 Paolo Bonzini <bonzini@gnu.org>
606 * pt.c (convert_nontype_argument_function): Expect expr to be an
610 * typeck.c (merge_types): Call resolve_typename_type if only
611 one type is a typename.
613 2009-02-02 Jason Merrill <jason@redhat.com>
616 * parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node
619 2009-02-01 Paolo Carlini <paolo.carlini@oracle.com>
622 * parser.c (cp_parser_pure_specifier): If there are no tokens left
623 do not call cp_lexer_consume_token.
625 2009-01-30 Jakub Jelinek <jakub@redhat.com>
628 * parser.c (cp_parser_already_scoped_statement): Handle __label__
631 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
634 * error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.
636 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
639 * error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.
641 2009-01-29 Paolo Carlini <paolo.carlini@oracle.com>
643 * typeck.c (invalid_nonstatic_memfn_p): Use
644 DECL_NONSTATIC_MEMBER_FUNCTION_P.
646 2009-01-27 Paolo Carlini <paolo.carlini@oracle.com>
649 * call.c (build_over_call): If convert_for_arg_passing returns
650 error_mark_node unconditionally return it.
652 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
654 * class.c (check_field_decls): Also inherit packed for bitfields
655 regardless of their type.
657 2009-01-22 Dodji Seketeli <dodji@redhat.com>
660 * decl2.c (grokfield): Reverting changes of PR c++/26693
661 (save_template_attributes): Likewise.
662 * decl.c (grokdeclarator): Likewise.
663 * name-lookup.c (pushdecl_maybe_friend): Likewise.
664 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Likewise.
665 (append_type_to_template_for_access_check): Likewise.
666 * semantics.c (check_accessibility_of_qualified_id): Likewise.
667 * pt.c (instantiate_class_template, instantiate_template ): Likewise.
669 (resolve_type_name_type): Likewise.
670 (append_type_to_template_for_access_check): Likewise.
672 2009-01-21 Dodji Seketeli <dodji@redhat.com>
675 * decl2.c (grokfield): when a typedef appears in a
676 class, create the typedef variant type node for it.
677 (save_template_attributes): Creating typedef variant type node
679 * decl.c (grokdeclarator): If the typedef'ed struct/class was
680 anonymous, set the proper type name to all its type variants.
681 * name-lookup.c (pushdecl_maybe_friend): Reuse the
682 set_underlying_type function to install typedef variant types.
683 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
685 (append_type_to_template_for_access_check): New entry points.
686 * semantics.c (check_accessibility_of_qualified_id):
687 When a typedef that is a member of a class appears in a template,
688 add it to the template. It will be ...
689 * pt.c (instantiate_class_template, instantiate_template ): ... access
690 checked at template instantiation time.
691 (tsubst): Handle the case of being called with NULL args.
692 (resolve_type_name_type): The type name should be the name of the
694 (append_type_to_template_for_access_check): New entry point.
696 2009-01-19 Jason Merrill <jason@redhat.com>
699 * parser.c (cp_parser_unqualified_id): In a template,
701 * typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.
703 2009-01-16 Jason Merrill <jason@redhat.com>
706 * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
707 * init.c (build_new): Don't call describable_type unless we
711 * pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.
714 * search.c (protected_accessible_p): N doesn't vary.
716 2009-01-15 Jason Merrill <jason@redhat.com>
719 * pt.c (tsubst_copy_and_build): Tell finish_call_expr to
720 accept hidden friends.
722 2009-01-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
725 * decl.c (grokdeclarator): Check for a non namespace/class context.
727 2009-01-15 Jason Merrill <jason@redhat.com>
731 * tree.c (lvalue_p_1): Handle BASELINK. A COMPONENT_REF to
732 a function isn't necessarily an lvalue. Take tree, not const_tree.
733 (lvalue_p, real_lvalue_p): Take tree, not const_tree.
734 * typeck.c (lvalue_or_else): Likewise.
735 * cp-tree.h: Adjust prototypes.
737 2009-01-15 Steve Ellcey <sje@cup.hp.com>
740 * pt.c (tsubst): Check for NULL args.
742 2009-01-15 Dodji Seketeli <dodji@redhat.com>
745 * name-lookup.c (pushtag): Don't create members to types that are not
748 2009-01-14 Nick Clifton <nickc@redhat.com>
751 * parser.c: Pass cp_id_kind computed in
752 cp_parser_postfix_dot_deref_expression to
753 cp_parser_primary_expression.
755 2009-01-13 Jakub Jelinek <jakub@redhat.com>
758 * tree.c (cp_walk_subtrees): Handle REINTERPRET_CAST_EXPR,
759 STATIC_CAST_EXPR, CONST_CAST_EXPR and DYNAMIC_CAST_EXPR the same
762 2009-01-12 Jason Merrill <jason@redhat.com>
763 Steve Ellcey <sje@cup.hp.com>
766 * name-lookup.c (lookup_name_real): Keep looking past a hidden
769 2009-01-12 Dodji Seketeli <dodji@redhat.com>
772 * pt.c (parameter_of_template_p): New function.
773 * cp-tree.h: Declare it.
774 * name-lookup.c (binding_to_template_parms_of_scope_p): New
776 (outer_binding): Take template parameters in account when looking for
779 2009-01-12 Jason Merrill <jason@redhat.com>
782 * tree.c (pod_type_p): Return 1 for structs created by the back end.
784 2009-01-12 Jakub Jelinek <jakub@redhat.com>
787 * parser.c (cp_parser_builtin_offsetof): Allow `->' in
788 offsetof member-designator, handle it as `[0].'.
791 * decl.c (start_function): If grokdeclarator hasn't returned
792 FUNCTION_DECL nor error_mark_node, issue diagnostics.
794 2009-01-11 Jakub Jelinek <jakub@redhat.com>
797 * cp-gimplify.c (genericize_if_stmt): Renamed from ...
798 (gimplify_if_stmt): ... this.
799 (cp_gimplify_expr): Don't handle IF_STMT here.
800 (cp_genericize_r): Call genericize_if_stmt for IF_STMT.
802 2009-01-10 Andrew Pinski <pinskia@gmail.com>
805 * typeck.c (cp_build_modify_expr): Check for NULL current_function_decl.
808 * typeck2.c (build_functional_cast): Check for reference type and NULL
811 2009-01-09 Steve Ellcey <sje@cup.hp.com>
813 * typeck.c (cp_build_unary_op): Check for ERROR_MARK.
815 2009-01-09 Jakub Jelinek <jakub@redhat.com>
818 * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
820 2009-01-09 John F. Carr <jfc@mit.edu>
823 * parser.c (cp_parser_class_specifier): Clear
824 parser->in_unbraced_linkage_specification_p while parsing class
827 2009-01-07 Jakub Jelinek <jakub@redhat.com>
830 * semantics.c (finish_goto_stmt): Convert destination to
833 2009-01-06 Jason Merrill <jason@redhat.com>
840 * pt.c (check_default_tmpl_args): Don't complain about
841 out-of-order parameter packs in the enclosing class
842 or parameter packs after default args.
843 (coerce_template_parms): If we have more than one
844 parameter pack, don't flatten argument packs.
845 (template_args_equal): Handle argument packs.
846 (comp_template_args): Don't flatten argument packs.
847 (check_instantiated_arg): Split out from...
848 (check_instantiated_args): Here. Handle arg packs.
849 (convert_template_argument): Just check that nontype argument
850 packs have the right type.
852 2009-01-05 Dodji Seketeli <dodji@redhat.com>
855 * typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
857 2009-01-05 Jason Merrill <jason@redhat.com>
860 * typeck2.c (process_init_constructor_union): Handle union with
863 * mangle.c (write_expression): Remove mangling for zero-operand
867 * decl.c (cp_finish_decl): Clear DECL_INITIAL for invalid
871 * class.c (defaultable_fn_p): Only operator== can be a copy
874 2009-01-02 Jason Merrill <jason@redhat.com>
877 * typeck2.c (process_init_constructor_union): Handle excess
879 (process_init_constructor_record): Likewise.
882 * typeck2.c (digest_init_r): Don't use process_init_constructor
883 for non-aggregate classes.