1 2009-02-24 Richard Guenther <rguenther@suse.de>
4 * pt.c (instantiate_decl): Do not instantiate extern, non-inline
7 2009-02-23 H.J. Lu <hongjiu.lu@intel.com>
10 * pt.c (coerce_template_template_parms): Return 0 if parameter
13 2009-02-23 Jason Merrill <jason@redhat.com>
15 * pt.c (unify): Call maybe_adjust_types_for_deduction when
16 deducing from an initializer list.
18 2009-02-20 Jason Merrill <jason@redhat.com>
21 * decl.c (grokdeclarator): Handle ~identifier.
23 2009-02-19 Jakub Jelinek <jakub@redhat.com>
26 * decl2.c (determine_visibility): If visibility changed and
27 DECL_RTL has been already set, call make_decl_rtl to update symbol
30 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
33 * cp-tree.h (maybe_commonize_var): New.
35 * decl.c (maybe_commonize_var): Make it extern.
37 * decl2.c (finish_anon_union): Call maybe_commonize_var.
39 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
42 * parser.c (cp_parser_enum_specifier): Apply all attributes.
44 2009-02-18 Jason Merrill <jason@redhat.com>
46 * cfns.h: Tweak pathname for cfns.gperf.
48 2009-02-13 Jason Merrill <jason@redhat.com>
51 * semantics.c (finish_call_expr): Change koenig_p parm to int.
52 If -1, don't set KOENIG_LOOKUP_P but do keep hidden candidates.
53 * cp-tree.h: Adjust prototype.
54 * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Pass -1.
56 2009-02-12 Jason Merrill <jason@redhat.com>
59 * pt.c (unify)[TEMPLATE_PARM_INDEX]: Convert to the tsubsted type.
61 2009-02-11 Jason Merrill <jason@redhat.com>
64 * decl2.c (cp_write_global_declarations):
65 Check DECL_DEFAULTED_FN, not DECL_ARTIFICIAL.
68 * init.c (build_value_init_noctor): Split out from...
69 (build_value_init): ...here.
70 (expand_aggr_init_1): Handle value-initialization.
71 * cp-tree.h: Add declaration.
72 * class.c (type_has_user_provided_constructor):
73 Handle non-class arguments.
75 2009-02-10 Jason Merrill <jason@redhat.com>
78 * class.c (defaultable_fn_p): Handle ... properly.
81 * tree.c (lvalue_p_1): Condition rvalue ref handling on
82 treat_class_rvalues_as_lvalues, too.
84 2009-02-10 Paolo Carlini <paolo.carlini@oracle.com>
87 * typeck.c (build_x_array_ref): New.
88 * cp-tree.h: Declare it.
89 * pt.c (tsubst_copy_and_build): Use it for case ARRAY_REF.
91 2009-02-09 Jason Merrill <jason@redhat.com>
94 * semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
95 * init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
96 * tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
97 * cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
98 for build_value_init TARGET_EXPR.
99 * cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.
101 2009-02-06 Paolo Carlini <paolo.carlini@oracle.com>
105 * cp-tree.h (TMPL_ARGS_HAVE_MULTIPLE_LEVELS): Check TREE_VEC_LENGTH.
107 2009-02-04 Jakub Jelinek <jakub@redhat.com>
110 * operators.def: Use COMPONENT_REF code for ->/pt operator again,
111 remove ./dt operator.
112 * mangle.c (write_expression): Handle COMPONENT_REF after handling
113 ADDR_EXPR, for COMPONENT_REF without ARROW_EXPR inside of it
114 write_string ("dt") instead of using operators.def.
116 2009-02-03 Jason Merrill <jason@redhat.com>
118 * typeck.c (cp_build_unary_op): Only complain about taking address
121 2009-02-03 Jakub Jelinek <jakub@redhat.com>
124 * parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.
127 * typeck2.c (digest_init_r): Don't call process_init_constructor
130 2009-02-03 Paolo Bonzini <bonzini@gnu.org>
133 * pt.c (convert_nontype_argument_function): Expect expr to be an
137 * typeck.c (merge_types): Call resolve_typename_type if only
138 one type is a typename.
140 2009-02-02 Jason Merrill <jason@redhat.com>
143 * parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node
146 2009-02-01 Paolo Carlini <paolo.carlini@oracle.com>
149 * parser.c (cp_parser_pure_specifier): If there are no tokens left
150 do not call cp_lexer_consume_token.
152 2009-01-30 Jakub Jelinek <jakub@redhat.com>
155 * parser.c (cp_parser_already_scoped_statement): Handle __label__
158 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
161 * error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.
163 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
166 * error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.
168 2009-01-29 Paolo Carlini <paolo.carlini@oracle.com>
170 * typeck.c (invalid_nonstatic_memfn_p): Use
171 DECL_NONSTATIC_MEMBER_FUNCTION_P.
173 2009-01-27 Paolo Carlini <paolo.carlini@oracle.com>
176 * call.c (build_over_call): If convert_for_arg_passing returns
177 error_mark_node unconditionally return it.
179 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
181 * class.c (check_field_decls): Also inherit packed for bitfields
182 regardless of their type.
184 2009-01-22 Dodji Seketeli <dodji@redhat.com>
187 * decl2.c (grokfield): Reverting changes of PR c++/26693
188 (save_template_attributes): Likewise.
189 * decl.c (grokdeclarator): Likewise.
190 * name-lookup.c (pushdecl_maybe_friend): Likewise.
191 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Likewise.
192 (append_type_to_template_for_access_check): Likewise.
193 * semantics.c (check_accessibility_of_qualified_id): Likewise.
194 * pt.c (instantiate_class_template, instantiate_template ): Likewise.
196 (resolve_type_name_type): Likewise.
197 (append_type_to_template_for_access_check): Likewise.
199 2009-01-21 Dodji Seketeli <dodji@redhat.com>
202 * decl2.c (grokfield): when a typedef appears in a
203 class, create the typedef variant type node for it.
204 (save_template_attributes): Creating typedef variant type node
206 * decl.c (grokdeclarator): If the typedef'ed struct/class was
207 anonymous, set the proper type name to all its type variants.
208 * name-lookup.c (pushdecl_maybe_friend): Reuse the
209 set_underlying_type function to install typedef variant types.
210 * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
212 (append_type_to_template_for_access_check): New entry points.
213 * semantics.c (check_accessibility_of_qualified_id):
214 When a typedef that is a member of a class appears in a template,
215 add it to the template. It will be ...
216 * pt.c (instantiate_class_template, instantiate_template ): ... access
217 checked at template instantiation time.
218 (tsubst): Handle the case of being called with NULL args.
219 (resolve_type_name_type): The type name should be the name of the
221 (append_type_to_template_for_access_check): New entry point.
223 2009-01-19 Jason Merrill <jason@redhat.com>
226 * parser.c (cp_parser_unqualified_id): In a template,
228 * typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.
230 2009-01-16 Jason Merrill <jason@redhat.com>
233 * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
234 * init.c (build_new): Don't call describable_type unless we
238 * pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.
241 * search.c (protected_accessible_p): N doesn't vary.
243 2009-01-15 Jason Merrill <jason@redhat.com>
246 * pt.c (tsubst_copy_and_build): Tell finish_call_expr to
247 accept hidden friends.
249 2009-01-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
252 * decl.c (grokdeclarator): Check for a non namespace/class context.
254 2009-01-15 Jason Merrill <jason@redhat.com>
258 * tree.c (lvalue_p_1): Handle BASELINK. A COMPONENT_REF to
259 a function isn't necessarily an lvalue. Take tree, not const_tree.
260 (lvalue_p, real_lvalue_p): Take tree, not const_tree.
261 * typeck.c (lvalue_or_else): Likewise.
262 * cp-tree.h: Adjust prototypes.
264 2009-01-15 Steve Ellcey <sje@cup.hp.com>
267 * pt.c (tsubst): Check for NULL args.
269 2009-01-15 Dodji Seketeli <dodji@redhat.com>
272 * name-lookup.c (pushtag): Don't create members to types that are not
275 2009-01-14 Nick Clifton <nickc@redhat.com>
278 * parser.c: Pass cp_id_kind computed in
279 cp_parser_postfix_dot_deref_expression to
280 cp_parser_primary_expression.
282 2009-01-13 Jakub Jelinek <jakub@redhat.com>
285 * tree.c (cp_walk_subtrees): Handle REINTERPRET_CAST_EXPR,
286 STATIC_CAST_EXPR, CONST_CAST_EXPR and DYNAMIC_CAST_EXPR the same
289 2009-01-12 Jason Merrill <jason@redhat.com>
290 Steve Ellcey <sje@cup.hp.com>
293 * name-lookup.c (lookup_name_real): Keep looking past a hidden
296 2009-01-12 Dodji Seketeli <dodji@redhat.com>
299 * pt.c (parameter_of_template_p): New function.
300 * cp-tree.h: Declare it.
301 * name-lookup.c (binding_to_template_parms_of_scope_p): New
303 (outer_binding): Take template parameters in account when looking for
306 2009-01-12 Jason Merrill <jason@redhat.com>
309 * tree.c (pod_type_p): Return 1 for structs created by the back end.
311 2009-01-12 Jakub Jelinek <jakub@redhat.com>
314 * parser.c (cp_parser_builtin_offsetof): Allow `->' in
315 offsetof member-designator, handle it as `[0].'.
318 * decl.c (start_function): If grokdeclarator hasn't returned
319 FUNCTION_DECL nor error_mark_node, issue diagnostics.
321 2009-01-11 Jakub Jelinek <jakub@redhat.com>
324 * cp-gimplify.c (genericize_if_stmt): Renamed from ...
325 (gimplify_if_stmt): ... this.
326 (cp_gimplify_expr): Don't handle IF_STMT here.
327 (cp_genericize_r): Call genericize_if_stmt for IF_STMT.
329 2009-01-10 Andrew Pinski <pinskia@gmail.com>
332 * typeck.c (cp_build_modify_expr): Check for NULL current_function_decl.
335 * typeck2.c (build_functional_cast): Check for reference type and NULL
338 2009-01-09 Steve Ellcey <sje@cup.hp.com>
340 * typeck.c (cp_build_unary_op): Check for ERROR_MARK.
342 2009-01-09 Jakub Jelinek <jakub@redhat.com>
345 * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
347 2009-01-09 John F. Carr <jfc@mit.edu>
350 * parser.c (cp_parser_class_specifier): Clear
351 parser->in_unbraced_linkage_specification_p while parsing class
354 2009-01-07 Jakub Jelinek <jakub@redhat.com>
357 * semantics.c (finish_goto_stmt): Convert destination to
360 2009-01-06 Jason Merrill <jason@redhat.com>
367 * pt.c (check_default_tmpl_args): Don't complain about
368 out-of-order parameter packs in the enclosing class
369 or parameter packs after default args.
370 (coerce_template_parms): If we have more than one
371 parameter pack, don't flatten argument packs.
372 (template_args_equal): Handle argument packs.
373 (comp_template_args): Don't flatten argument packs.
374 (check_instantiated_arg): Split out from...
375 (check_instantiated_args): Here. Handle arg packs.
376 (convert_template_argument): Just check that nontype argument
377 packs have the right type.
379 2009-01-05 Dodji Seketeli <dodji@redhat.com>
382 * typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
384 2009-01-05 Jason Merrill <jason@redhat.com>
387 * typeck2.c (process_init_constructor_union): Handle union with
390 * mangle.c (write_expression): Remove mangling for zero-operand
394 * decl.c (cp_finish_decl): Clear DECL_INITIAL for invalid
398 * class.c (defaultable_fn_p): Only operator== can be a copy
401 2009-01-02 Jason Merrill <jason@redhat.com>
404 * typeck2.c (process_init_constructor_union): Handle excess
406 (process_init_constructor_record): Likewise.
409 * typeck2.c (digest_init_r): Don't use process_init_constructor
410 for non-aggregate classes.