]> gcc.gnu.org Git - gcc.git/blob - gcc/cp/ChangeLog
re PR c++/3761 (ICE in check_template_shadow, at cp/pt.c:2013, with friend and strang...
[gcc.git] / gcc / cp / ChangeLog
1 2004-07-03 Scott Brumbaugh <scottb.lists@verizon.net>
2
3 PR c++/3761
4 * name-lookup.c (push_class_level_binding): Don't pass a
5 TREE_LIST of ambiguous names to check_template_shadow as it
6 only handles declarations. Instead, pull the declaration
7 out and pass that.
8
9 2004-07-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
10
11 PR c++/14971
12 * pt.c (check_explicit_specialization): Clarify error message.
13
14 2004-07-02 Richard Henderson <rth@redhat.com>
15
16 * tree.c (cp_unsave_r): Update remap_save_expr call.
17
18 2004-07-02 Mark Mitchell <mark@codesourcery.com>
19
20 PR c++/16240
21 * mangle.c (write_template_arg): Correct mangling.
22
23 PR c++/16297
24 * decl.c (grokdeclarator): Robustify.
25
26 2004-07-01 Richard Henderson <rth@redhat.com>
27
28 * class.c (fixed_type_or_null): Don't handle RTL_EXPR.
29 * method.c (synthesize_method): Don't clear_last_expr.
30 * name-lookup.c (maybe_push_cleanup_level): Likewise.
31
32 2004-07-01 Nick Clifton <nickc@redhat.com>
33
34 * decl2.c (import_export_class): Invoke the
35 import_export_class field in the gcc_target structure if it is not
36 empty.
37
38 2004-06-30 Richard Henderson (rth@redhat.com>
39
40 * decl.c (start_preparsed_function): Don't set immediate_size_expand.
41 * method.c (use_thunk): Likewise.
42
43 2004-06-30 Joseph S. Myers <jsm@polyomino.org.uk>
44
45 * call.c (build_over_call), typeck.c (build_function_call): Call
46 check_function_arguments instead of check_function_format.
47
48 2004-06-30 Joseph S. Myers <jsm@polyomino.org.uk>
49
50 * call.c (build_over_call), typeck.c (build_function_call): Update
51 calls to check_function_format.
52
53 2004-06-30 Richard Henderson <rth@redhat.com>
54
55 * call.c (build_over_call): Use __builtin_memcpy for copying
56 CLASS_AS_BASE rather than funny casting.
57
58 2004-06-30 Richard Henderson <rth@redhat.com>
59
60 * init.c (build_new_1): Fill in TYPE_DOMAIN, TYPE_SIZE and
61 TYPE_SIZE_UNIT of full_type.
62
63 2004-06-30 Per Bothner <per@bothner.com>
64
65 Conditionally compile support for --enable-mapped_location.
66 * decl.c (pop_label): Handle (imperfectly) USE_MAPPED_LOCATION case.
67 * decl2.c: If USE_MAPPED_LOCATION, don't do some line number
68 adjustments - which I don't understand.
69 * error.c (dump_decl): Rename "<interrnal>" to "<built-in>".
70 * error.c: Use LOCATION_FILE and EXPR_LOCATION macros.
71 (print_instantiation_partial_context): Use expand_location.
72 * decl.c (duplicate_decl): Use new DECL_IS_BUILTIN macro.
73 * name-lookup.c: Likewise.
74 * lex.c (cxx_init): Likewise. Also use BUILTINS_LOCATION.
75 * name-lookup.c: Use input_line macro.
76 * parser.c (cp_lexer_get_preprocessor_token): Use UNKNOWN_LOCATION.
77 (cp_parser_statement): Rename locaal variable statement_locus to
78 statement_location and use SET_EXPR_LOCATION macro.
79 * pt.c: Handle USE_MAPPED_LOCATION case. Use new macros.
80 * tree.c (cp_walk_subtrees): Likewise.
81
82 2004-06-29 Per Bothner <per@bothner.com>
83
84 * tree.c (build_min_nt, build_min, build_min_non_dep):
85 Don't set TREE_COMPLEXITY from input_line.
86
87 2004-06-29 Paul Brook <paul@codesourcery.com>
88
89 * init.c: Include target.h.
90 (get_cookie_size): Remove and replace with target hook.
91 Update callers.
92 (build_new_1): Store the element size in the cookie.
93
94 2004-06-29 Nathan Sidwell <nathan@codesourcery.com>
95
96 PR c++/16260
97 * parser.c (cp_parser_template_declaration_after_export): Disable
98 access checks here ...
99 (cp_parser_class_specifier): ... not here.
100
101 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
102
103 * cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK,
104 VAR_FUNCTION_OR_PARM_DECL_CHECK, RECORD_OR_UNION_TYPE_CHECK,
105 BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Use appropriate
106 TREE_CHECK macro.
107
108 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
109
110 * cp-tree.h (struct deferred_access): Move to ...
111 * semantics.c (struct deferred_access): ... here. Adjust.
112 (deferred_access_stack): Make a VEC(deferred_access),
113 (deferred_access_free_list): Remove.
114 (deferred_access_no_check): New.
115 (push_deferring_access_checks, resume_deferring_access_checks,
116 stop_deferring_access_checks, pop_deferring_access_checks,
117 get_deferred_access_checks, pop_to_parent_deferring_access_checks,
118 perform_deferred_access_checks, perform_or_defer_access_check): Adjust.
119
120 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
121
122 PR c++/16174
123 * call.c (build_temp): Declare.
124 (check_constructor_callable): New.
125 (reference_binding): Only set CHECK_COPY_CONSTRUCTOR if not for
126 CONSTRUCTOR_CALLABLE.
127 (convert_like_real, initialize_reference): Use
128 check_constructor_callable.
129 * cp-tree.h (LOOKUP_CONSTRUCTOR_CALLABLE): New.
130 (LOOKUP_*): Renumber.
131
132 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
133
134 * friend.c (add_friend): Only perform access checks when context
135 is a class.
136 * lex.c (cxx_make_type): Only create a binfo for aggregate types.
137 * parser.c (cp_parser_class_specifier): Disable access checks here
138 when parsing the body of a templated class.
139 * semantics.c (perform_or_defer_access_checks): Reorder to allow
140 NULL binfos when not checking access.
141
142 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
143
144 Use vector API for vbase list.
145 * cp-tree.h: Include vec.h
146 (DEF_VEC_P (tree)): New type.
147 (struct lang_type_class): Change vbase's member type.
148 (binfo_for_vbase): Declare.
149 * class.c (determine_primary_base, base_derived_from,
150 update_vtable_entry_for_fn, walk_subobject_offsets, end_of_class,
151 warn_about_ambiguous_bases, dfs_accumulate_vtbl_inits,
152 build_vtbl_initializer): Adjust.
153 * decl.c (xref_basetypes): Adjust, accumulate upper bound of
154 vbases.
155 * init.c (sort_mem_initializers, expand_member_init,
156 push_base_cleanups): Adjust.
157 * method.c (do_build_copy_constructor): Adjust.
158 * search.c (get_pure_virtuals, copied_binfo, original_binfo): Adjust.
159 (binfo_for_vbase): New.
160 * tree.c (copy_base_binfos): Adjust.
161
162 2004-06-28 Mark Mitchell <mark@codesourcery.com>
163
164 * parser.c (cp_parser_set_decl_spec_type): Fix thinko.
165
166 2004-06-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
167
168 PR c++/14123
169 * cxx-pretty-print.c (pp_cxx_ptr_operator): Properly put
170 paranthesis in case of pointers to array members.
171 * error.c (dump_type_prefix): Likewise.
172 (dump_type_suffix): Maybe issue a whitespace when printing
173 ARRAY_TYPE.
174
175 2004-06-27 Mark Mitchell <mark@codesourcery.com>
176
177 PR c++/16193
178 * parser.c (cp_parser_set_decl_spec_type): Refine test for
179 redefinition of built-in types.
180
181 2004-06-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
182
183 * error.c (pp_template_argument_list_start): Remove.
184 (pp_template_argument_list_end): Likewise.
185 (pp_separate_with_comma): Use pp_cxx_separate_with.
186 (reinit_global_formatting_buffer): Remove.
187 (pp_non_consecutive_character): Likewise.
188 (dump_scope): Use pp_cxx_colon_colon.
189 (dump_template_parameter): Use pp_cxx_identifier,
190 pp_cxx_tree_identifier and pp_cxx_whitespace.
191 (dump_templat_bindings): Replace use of pp_string with sequence
192 of pp_cxx_whitespace and pp_equal.
193 (dump_type): Use pp_cxx_identifier, pp_cxx_tree_identifier,
194 pp_cxx_colon_colon, pp_cxx_whitespace throughout. Don't set
195 padding here.
196 (dump_aggr_type): Use pp_cxx_identifier amd pp_cxx_tree_identifier.
197 (dump_type_prefix): Don't set padding. Use pp_cxx_whitespace,
198 pp_cxx_left_parent, pp_cxx_colon_colon and pp_cxx_star troughout.
199 (dump_type_suffix): Use pp_cxx_right_paren, pp_cxx_left_bracket,
200 pp_cxx_right_bracket, pp_cxx_identifier throughout,
201 (dump_decl): Likewise.
202 (dump_template_decl): Likewise.
203 (dump_function_decl): Likewise. Set padding as appropriate.
204 (dump_parameters): Use pp_cxx_left_paren, pp_cxx_identifier and
205 pp_cxx_right_paren.
206 (dump_exception_spec): Likewise.
207 (dump_function_name): Use pp_cxx_tree_identifier and
208 pp_cxx_identifier.
209 (dump_template_parms): Use pp_cxx_begin_template_argument_list and
210 pp_cxx_end_template_argument_list.
211 (dump_expr): Use pp_cxx_left_paren, pp_cxx_right_paren,
212 pp_cxx_colon_colon, pp_cxx_identifier, pp_cxx_tree_identifier and
213 pp_cxx_whitespace throughout.
214 (dump_binary_op): Use pp_cxx_whitespace, pp_cxx_left_paren and
215 pp_cxx_right_paren.
216 (dump_unary_op): Likewise.
217 (reinit_cxx_pp): New function.
218 (type_as_string); Use it.
219 (expr_as_string): Likewise.
220 (decl_as_string); Likewise.
221 (context_as_string): Likewise.
222 (lang_decl_name): Likewise.
223 (decl_to_string): Likewise.
224 (expr_to_string): Likewise.
225 (parm_to_string): Likewise.
226 (type_to_string): Likewise.
227 (args_to_string): Likewise.
228 (cv_to_string): Likewise.
229
230 2004-06-26 Mark Mitchell <mark@codesourcery.com>
231
232 * cp-tree.h (cp_cv_quals): New type.
233 (cp_declarator): Use it instead of "tree" as appropriate.
234 (grok_method_quals): Adjust prototype.
235 (grokclassfn): Likewise.
236 (do_friend): Likewise.
237 * decl.c (grokfndecl): Use cp_cv_quals, not tree.
238 (grokdeclarator): Likewise.
239 * decl2.c (grok_method_quals): Likewise.
240 (grokclassfn): Likewise.
241 * friend.c (do_friend): Likewise.
242 * method.c (implicitly_declare_fn): Adjust call to grokclassfn.
243 * parser.c (make_call_declarator): Use cp_cv_quals, not tree.
244 (make_pointer_declarator): Likewise.
245 (make_reference_declarator): Likewise.
246 (make_ptrmem_declarator): Likewise.
247 (cp_parser_ptr_operator): Likewise.
248 (cp_parser_cv_qualifier_seq_opt): Likewise.
249 (cp_parser_cv_qualifier_opt): Remove.
250 (cp_parser_new_declarator_opt): Adjust call to
251 cp_parser_ptr_operator.
252 (cp_parser_conversion_declaration_opt): Likewise.
253 (cp_parser_declarator): Use cp_cv_quals, not tree.
254 (cp_parser_direct_declarator): Likewise.
255
256 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
257
258 * call.c, cp-tree.h, cxx-pretty-print.c, decl.c, decl2.c:
259 Rename DECL_STMT to DECL_EXPR.
260 * init.c, name-lookup.c, parser.c, pt.c, semantics.c: Likewise.
261 * cp-lang.c (LANG_HOOKS_SAFE_FROM_P): Deleted.
262 * tree.c (cp_walk_subtrees): Don't call c_walk_subtrees.
263
264 2004-06-26 Jan Hubicka <jh@suse.cz>
265
266 PR C++/14865
267 * decl2.c (maybe_emit_vtables): Always import_export_vtable for the
268 reachability analysis.
269
270 2004-06-25 Mark Mitchell <mark@codesourcery.com>
271
272 * cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
273 2004-06-23 change.
274
275 2004-06-25 Paul Brook <paul@codesourcery.com>
276
277 * decl2.c (get_guard): Call targetm.cxx.guard_type.
278 (get_guard_bits, get_guard_cond): Call targetm.cxx.guard_mask_bit.
279
280 2004-06-24 Mark Mitchell <mark@codesourcery.com>
281
282 * decl.c (grokdeclarator): Restore error messages about __thread.
283 * parser.c (cp_parser_decl_specifier_seq): Likewise.
284
285 2004-06-24 Jason Merrill <jason@redhat.com>
286
287 PR c++/16115
288 * decl.c (grokparms): Give the PARM_DECL reference type if the
289 parameter is passed by invisible reference.
290
291 2004-06-24 Andreas Schwab <schwab@suse.de>
292
293 * cp-tree.h (enum cp_storage_class): Remove trailing comma.
294
295 2004-06-23 Mark Mitchell <mark@codesourcery.com>
296
297 * Make-lang.in (cp/lex.o): Do not depend on cp/lex.h.
298 (cp/decl.o): Likewise.
299 (cp/decl2.o): Likewise.
300 (cp/pt.o): Likewise.
301 (cp/semantics.o): Likewise.
302 * config-lang.in (gtfiles): Do not reference cp/lex.h.
303 * class.c: Do not include lex.h.
304 (add_implicitly_declared_members): Do not use
305 adding_implicit_members.
306 (check_bases_and_members): Do not talk about grok_x_components.
307 * cp/cp-tree.h (adding_implicit_members): Remove.
308 (cp_storage_class): New type.
309 (cp_decl_spec): Likewise.
310 (cp_decl_specifier_seq): Likewise.
311 (cp_parameter_declarator): Use it for the decl_specifiers field.
312 (check_tag_decl): Adjust prototype.
313 (shadow_tag): Likewise.
314 (groktypename): Likewise.
315 (start_decl): Likewise.
316 (start_function): Likewise.
317 (start_method): Likewise.
318 (grok_x_components): Remove.
319 (grokfield): Adjust prototype.
320 (grokbitfield): Likewise.
321 (finish_member_class_template): Remove.
322 * decl.c: Do not include lex.h.
323 (adding_implicit_members): Do not define.
324 (check_tag_decl): Do not use trees to represent decl-specifiers.
325 (shadow_tag): Likewise.
326 (groktypename): Likewise.
327 (start_decl): Likewise.
328 (grokvardecl): Likewise.
329 (grokdeclarator): Likewise.
330 (grokparms): Likewise.
331 (start_function): Likewise.
332 (start_method): Likewise.
333 * decl.h (grokdeclarator): Adjust prototype.
334 * decl2.c: Do not include lex.h.
335 (grok_x_components): Remove.
336 (grokfield): Do not use trees to represent decl-specifiers.
337 (grokbitfield): Likewise.
338 * lex.c: Do not include lex.h.
339 * lex.h: Remove.
340 * parser.c: Include target.h.
341 (clear_decl_specs): New function.
342 (cp_parser_translation_unit): Do not use trees to represent
343 decl-specifiers.
344 (cp_parser_postfix_expression): Likewise.
345 (cp_parser_new_type_id): Likewise.
346 (cp_parser_condition): Likewise.
347 (cp_parser_simple_declaration): Likewise.
348 (cp_parser_decl_specifier_seq): Likewise.
349 (cp_parser_function_specifier_opt): Likewise.
350 (cp_parser_conversion_type_id): Likewise.
351 (cp_parser_template_parameter): Likewise.
352 (cp_parser_explicit_instantiation): Likewise.
353 (cp_parser_type_specifier): Likewise.
354 (cp_parser_simple_type_specifier): Likewise.
355 (cp_parser_init_declarator): Likewise.
356 (cp_parser_type_id): Likewise.
357 (cp_parser_type_specifier_seq): Likewise.
358 (cp_parser_parameter_declaration): Likewise.
359 (cp_parser_member_declaration): Likewise.
360 (cp_parser_exception_declaration): Likewise.
361 (cp_parser_function_definition_from_specifiers_and_declarator):
362 Likewise.
363 (cp_parser_single_declaration): Likewise.
364 (cp_parser_save_member_function_body): Likewise.
365 (cp_parser_friend_p): Likewise.
366 (cp_parser_set_storage_class): New function.
367 (cp_parser_set_decl_spec_type): Likewise.
368 * pt.c: Do not include lex.h.
369 * semantics.c: Likewise.
370 (finish_member_class_template): Remove.
371
372 2004-06-23 Roger Sayle <roger@eyesopen.com>
373
374 * call.c (build_cxx_call): Don't call expand_tree_builtin. No
375 longer take both "args" and "convert_args" as arguments.
376 (build_op_delete_call): Update call to build_cxx_call.
377 (build_over_call): Likewise, update call to build_cxx_call.
378 * cp-tree.h (build_cxx_call): Update funtion prototype.
379 * typeck.c (build_function_call): Don't call expand_tree_builtin.
380 * rtti.c (throw_bad_cast): Update call to build_cxx_call.
381 (throw_bad_typeid): Likewise.
382 (build_dynamic_cast_1): Likewise.
383
384 2004-06-22 Richard Henderson <rth@redhat.com>
385
386 * class.c (build_vfn_ref): Take a pointer not object. Build
387 an OBJ_TYPE_REF.
388 (cp_fold_obj_type_ref): New.
389 * call.c (build_over_call): Update build_vfn_ref call.
390 * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New.
391 * cp-tree.h (cp_fold_obj_type_ref): Declare.
392
393 2004-06-21 Jason Merrill <jason@redhat.com>
394
395 PR c++/16112
396 * cp-gimplify.c (cp_gimplify_init_expr): Look through
397 CLEANUP_POINT_EXPR.
398
399 2004-06-21 Mark Mitchell <mark@codesourcery.com>
400
401 * cp-tree.def (NEW_EXPR): Add a fourth slot.
402 * cp-tree.h (PARMLIST_ELLIPSIS_P): Remove.
403 (TREE_PARMLIST): Likewise.
404 (CALL_DECLARATOR_PARMS): Likewise.
405 (CALL_DECLARATOR_QUALS): Likewise.
406 (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
407 (cp_declarator_kind): New type.
408 (cp_parameter_declarator): Likewise.
409 (cp_declarator): Likewise.
410 (cp_error_declarator): Likewise.
411 (no_parameters): Likewise.
412 (groktypename): Change prototype.
413 (start_decl): Likewise.
414 (start_handler_parms): Likewise.
415 (get_scope_of_declarator): Likewise.
416 (start_function): Likewise.
417 (start_preparsed_function): New function.
418 (start_function): Change prototype.
419 (start_method): Likewise.
420 (grokfield): Likewise.
421 (grokbitfield): Likewise.
422 (build_new): Likewise.
423 (make_pointer_declarator): Remove.
424 (make_reference_declarator): Likewise.
425 (make_call_declarator): Likewise.
426 (set_quals_and_spec): Likewise.
427 (process_template_parm): Change prototype.
428 (begin_function_definition): Remove.
429 (finish_parmlist): Remove.
430 * decl.c (groktypename): Do not use trees to represent
431 declarators.
432 (start_decl): Likewise.
433 (start_handler_parms): Remove.
434 (get_scope_of_declarator): Reimplement.
435 (grokdeclarator): Do not use trees to represent declarators.
436 (grokparms): Likewise.
437 (start_function): Likewise.
438 (start_method): Likewise.
439 (build_void_list_mode): Do not use TREE_PARMLIST.
440 * decl.h (grokdeclarator): Change prototype.
441 * decl2.c (grok_method_quals): Robustify.
442 (grok_x_components): Do not use trees to represent declarators.
443 (grokfield): Likewise.
444 (grokbitfield): Likewise.
445 (start_objects): Build FUNCTION_DECLs, not declarators.
446 (start_static_storage_duration_function): Likewise.
447 * init.c (build_new): Simplify.
448 * lex.c (make_pointer_declarator): Remove.
449 (make_reference_declarator): Likewise.
450 (make_call_declarator): Likewise.
451 (set_quals_and_spec): Likewise.
452 * method.c (use_thunk): Use start_preparsed_function.
453 (synthesize_method): Likewise.
454 (implicitly_declare_fn): Build FUNCTION_DECLs, not declarators.
455 * optimize.c (maybe_clone_body): Use start_preparsed_function.
456 * parser.c (cp_error_declarator): New variable.
457 (declarator_obstack): Likewise.
458 (alloc_declarator): New function.
459 (make_declarator): Likewise.
460 (make_id_declarator): Likewise.
461 (make_pointer_declarator): Likewise.
462 (make_reference_declarator): Likewise.
463 (make_ptrmem_declarator): Likewise.
464 (make_call_declarator): Likewise.
465 (make_array_declarator): Likewise.
466 (no_parameters): New variable.
467 (make_parameter_declarator): Likewise.
468 (cp_parser_check_for_definition_in_return_type): Do not use trees
469 to represent declarators.
470 (cp_parser_translation_unit): Likewise.
471 (cp_parser_new_expression): Likewise.
472 (cp_parser_new_type_id): Likewise.
473 (cp_parser_new_declarator_opt): Likewise.
474 (cp_parser_direct_new_declarator): Likewise.
475 (cp_parser_condition): Likewise.
476 (cp_parser_declaration_statement): Likewise.
477 (cp_parser_declaration): Likewise.
478 (cp_parser_conversion_type_id): Likewise.
479 (cp_parser_conversion_declarator_opt): Likewise.
480 (cp_parser_template_parameter_list): Likewise.
481 (cp_parser_template_parameter): Likewise.
482 (cp_parser_explicit_instantiation): Likewise.
483 (cp_parser_init_declarator): Likewise.
484 (cp_parser_declarator): Likewise.
485 (cp_parser_direct_declarator): Likewise.
486 (cp_parser_type_id): Likewise.
487 (cp_parser_parameter_declaration_clause): Likewise.
488 (cp_parser_parameter_declaration_list): Likewise.
489 (cp_parser_parameter_declaration): Likewise.
490 (cp_parser_member_declaration): Likewise.
491 (cp_parser_exception_declaration): Likewise.
492 (cp_parser_check_declarator_template_parameters): Likewise.
493 (cp_parser_function_definition_from_specifiers_and_declarator):
494 Likewise.
495 (cp_parser_save_member_function_body): Likewise.
496 * pt.c (process_template_parm): Add is_non_type parameter.
497 (convert_template_argument): Adjust call to groktypename.
498 (tsubst_call_declarator_parms): Remove use of TREE_PARMLIST.
499 (tsubst): Do not expect declarators.
500 (tsubst_copy_and_build): Adjust NEW_EXPR case to handle additional
501 argument.
502 (instantiate_decl): Use start_preparsed_function.
503 * semantics.c (begin_function_definition): Remove.
504 (finish_parmlist): Remove.
505 * cp-mudflap.c (mflang_flush_calls): Build FUNCTION_DECLs, not
506 declarators.
507
508 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
509
510 * call.c (build_vfield_ref): Add new operand for COMPONENT_REF.
511 (build_new_method_call): Likewise.
512 * decl.c (local_variable_p_walkfn): Don't walk into types.
513 * decl2.c (grok_array_decl): Add new operands for ARRAY_REF.
514 (build_anon_union_vars): Add new operand for COMPONENT_REF.
515 * init.c (buld_new): Add new operand for ARRAY_REF.
516 * method.c (do_build_copy_constructor): New op for COMPONENT_REF.
517 (do_build_assign_ref): Likewise.
518 * parser.c (cp_parser_direct_new_declarator): Add new operands
519 for ARRAY_REF.
520 (cp_parser_direct_declarator): Likewise.
521 * pt.c (tsubst): Likewise.
522 (tsubst_copy, tsubst_copy_and_build): Likewise; also add new operand
523 for COMPONENT_REF.
524 * semantics.c (finish_non_static_data_member): Add new operand
525 for COMPONENT_REF.
526 * typeck.c (build_class_member_access_expr): Likewise.
527 (build_class_member_access_expr, finish_class_member_access_expr):
528 Likewise.
529 (build_ptrmemfunc_access_expr): Likewise.
530 (build_array_ref): Add new operands for ARRAY_REF.
531 * typeck2.c (split_nonconstant_init_1): Likewise; COMPONENT_REF too.
532 * tree.c (count_trees_r, no_linkage_helper): Don't walk in types.
533
534 2004-06-21 Richard Henderson <rth@redhat.com>
535
536 * dump.c (cp_dump_tree): Don't use dump_next_stmt.
537 * parser.c (cp_parser_jump_statement): Update commentary.
538 * pt.c (tsubst_expr): Use RETURN_EXPR.
539 * semantics.c (finish_return_stmt): Likewise.
540 (finalize_nrv_r): Likewise.
541 * typeck.c, typeck2.c: Update file start commentary.
542
543 2004-06-21 Richard Henderson <rth@redhat.com>
544
545 * semantics.c (finish_expr_stmt): Call verify_sequence_points.
546
547 2004-06-20 Richard Henderson <rth@redhat.com>
548
549 * cp-tree.h (add_decl_stmt): Declare.
550 * pt.c (tsubst_copy): Abort for CLEANUP_POINT_EXPR.
551 * semantics.c (maybe_cleanup_point_expr): New.
552 (add_decl_stmt, finish_expr_stmt, finish_return_stmt,
553 finish_for_expr, finish_switch_cond): Use it.
554 (finalize_nrv_r): Don't build an EXPR_STMT. Don't frob TREE_CHAIN.
555
556 2004-06-20 Richard Henderson <rth@redhat.com>
557
558 * cp-tree.def (CLEANUP_STMT, IF_STMT): Move from c-common.def.
559 * cp-gimplify.c (gimplify_if_stmt): Move from c-gimplify.c.
560 (cp_gimplify_expr): Call it.
561 (gimplify_cleanup_stmt): Move from c-gimplify.c.
562 (cp_genericize): New.
563 * decl.c (finish_function): Call it.
564 * cp-tree.h (cp_stmt_codes): Add CLEANUP_STMT, IF_STMT.
565 (CLEANUP_BODY, CLEANUP_EXPR, CLEANUP_DECL): Move from c-common.h.
566 (IF_COND, THEN_CLAUSE, ELSE_CLAUSE): Likewise.
567 (cp_genericize): Declare.
568 * cxx-pretty-print.c (pp_cxx_statement): Add CLEANUP_STMT, IF_STMT.
569 * dump.c (cp_dump_tree): Likewise.
570 * semantics.c (push_cleanup): Move from c-semantics.c.
571
572 2004-06-20 Zack Weinberg <zack@codesourcery.com>
573
574 * cp-lang.c (has_c_linkage): Implement.
575
576 * cp-tree.h (set_mangled_name_for_decl): Don't prototype.
577 * decl.c (duplicate_decls): Use COPY_DECL_RTL.
578 (builtin_function_1): Don't call make_decl_rtl.
579 (build_cp_library_fn): Don't call set_mangled_name_for_decl.
580 (grokvardecl): Don't call mangle_decl.
581 * except.c (nothrow_libfn_p): Look at DECL_NAME, not
582 DECL_ASSEMBLER_NAME.
583 * method.c (set_mangled_name_for_decl): Delete.
584 * name-lookup.c (pushdecl): When a local extern shadows a
585 file-scope declaration of the same object, give both DECLs the
586 same DECL_UID.
587 * typeck.c (cxx_mark_addressable): Don't set TREE_ADDRESSABLE
588 on DECL_ASSEMBLER_NAME.
589
590 2004-06-19 Richard Henderson <rth@redhat.com>
591
592 * cp-gimplify.c: Remove unnecessary prototypes.
593 (cp_gimplify_stmt): Merge into ...
594 (cp_gimplify_expr): ... here. Move to end of file. Handle
595 stmts_are_full_exprs_p frobbing.
596 * cp-tree.h (cp_gimplify_stmt): Remove.
597 * pt.c (tsubst_expr): Merge prep_stmt and unify.
598 * tree.c (init_tree): Don't set lang_gimplify_stmt.
599
600 2004-06-18 Richard Henderson <rth@redhat.com>
601
602 PR c++/16034
603 * semantics.c (begin_cond): New.
604 (finish_cond): Rewrite to handle template DECL_STMTs specially.
605 Assume that non-template decls go land before the conditional.
606 (simplify_loop_decl_cond): Likewise.
607 (begin_if_stmt, finish_if_stmt_cond, begin_while_stmt,
608 finish_while_stmt_cond, finish_for_init_stmt, finish_for_cond,
609 begin_switch_stmt, finish_switch_cond): Update to match.
610
611 2004-06-17 Jason Merrill <jason@redhat.com>
612
613 PR c++/16015
614 * semantics.c (simplify_aggr_init_expr): Don't return the slot.
615 (finish_stmt_expr_expr): Update type after conversions.
616 (finish_stmt_expr): Wrap initializer in CLEANUP_POINT_EXPR.
617 Handle void initializer.
618 * tree.c (build_cplus_new): Make AGGR_INIT_EXPRs void.
619
620 2004-06-17 Geoffrey Keating <geoffk@apple.com>
621
622 * class.c (build_clone): Don't call defer_fn, let mark_used do it.
623 * cp-tree.h (defer_fn): Delete.
624 * decl2.c (defer_fn): Delete.
625 (finish_file): Simplify deferred_fns loops; check that
626 only used inline functions get into deferred_fns.
627 (mark_used): Inline previous contents of defer_fn.
628
629 2004-06-16 Richard Henderson <rth@redhat.com>
630
631 * cp-tree.h (COMPOUND_STMT_TRY_BLOCK, COMPOUND_STMT_BODY_BLOCK): Kill.
632 (BIND_EXPR_TRY_BLOCK, BIND_EXPR_BODY_BLOCK): New.
633 * cxx-pretty-print.c (pp_cxx_function_definition): Move handling
634 of CTOR_INITIALIZER ...
635 (pp_cxx_statement): ... here.
636 * decl.c (begin_function_body): Don't set COMPOUND_STMT_BODY_BLOCK.
637 (finish_function): Use alloc_stmt_list to zap entire function.
638 * parser.c (cp_parser_compound_statement): Update commentary.
639 * pt.c (tsubst_expr): Use BIND_EXPR instead of COMPOUND_STMT.
640 * semantics.c (begin_compound_stmt, finish_compound_stmt): Likewise.
641 (finish_stmt_expr): Don't look through COMPOUND_STMT.
642
643 2004-06-16 Geoffrey Keating <geoffk@apple.com>
644
645 * pt.c (mark_decl_instantiated): Don't call defer_fn.
646
647 2004-06-16 Richard Henderson <rth@redhat.com>
648
649 * parser.c (cp_parser_labeled_statement): Update commentary.
650 * pt.c (tsubst_expr): Use CASE_LABEL_EXPR.
651 * tree.c (mark_local_for_remap_r): Likewise.
652
653 2004-06-16 Richard Henderson <rth@redhat.com>
654
655 * parser.c (cp_parser_asm_definition): Update commentary.
656 * pt.c (tsubst_expr): Use ASM_EXPR.
657 * semantics.c (finish_asm_stmt): Likewise.
658
659 2004-06-16 Richard Henderson <rth@redhat.com>
660
661 * decl.c (finish_destructor_body): Use LABEL_EXPR.
662 * parser.c (cp_parser_statement): Update commentary.
663 * pt.c (tsubst_expr): Use LABEL_EXPR, GOTO_EXPR.
664 * semantics.c (finish_goto_stmt, finish_label_stmt): Likewise.
665 * tree.c (mark_local_for_remap_r): Likewise.
666
667 2004-06-16 Richard Henderson <rth@redhat.com>
668
669 PR c++/16012
670 * semantics.c (begin_for_stmt, begin_for_stmt): Do put the init
671 statement in FOR_INIT_STMT for templates.
672
673 2004-06-15 Richard Henderson <rth@redhat.com>
674
675 * call.c (initialize_reference): Don't build CLEANUP_STMT here.
676 * cp-gimplify.c (cp_gimplify_stmt): Remove next_p argument.
677 (genericize_try_block): Use gimplify_stmt.
678 (genericize_catch_block, genericize_eh_spec_block): Likewise.
679 (cp_gimplify_init_expr): Remove STMT_EXPR special case.
680 (gimplify_must_not_throw_expr): Update voidify_wrapper_expr call.
681 * cp-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
682 (cp_tree_chain_matters_p): Remove.
683 * cp-tree.h (COMPOUND_STMT_TRY_BLOCK): New.
684 (COMPOUND_STMT_BODY_BLOCK): New.
685 (STATEMENT_LIST_NO_SCOPE, STATEMENT_LIST_TRY_BLOCK): New.
686 (EXPR_STMT_STMT_EXPR_RESULT): New.
687 (building_stmt_tree): Check cur_stmt_list.
688 (tf_stmt_expr_cmpd, tf_stmt_expr_body): Remove.
689 (BCS_NO_SCOPE, BCS_TRY_BLOCK, BCS_FN_BODY): New.
690 * decl.c (poplevel): Use pop_stmt_list for minding cleanups.
691 (cp_finish_decl): Use push_cleanup.
692 (start_function, finish_function): Use statement lists.
693 (finish_stmt): Do nothing.
694 * except.c (begin_eh_spec_block): Use statement lists.
695 (check_handlers_1, check_handlers): Likewise.
696 * init.c (construct_virtual_base): Don't add extra compound stmts.
697 (build_vec_init): Likewise.
698 * name-lookup.c (maybe_push_cleanup_level): Use statement lists.
699 * name-lookup.h (struct cp_binding_level): Add statement_list.
700 * parser.c (cp_parser_statement): Take the STMT_EXPR node, not a bool.
701 (cp_parser_labeled_statement, cp_parser_expression_statement,
702 cp_parser_statement_seq_opt): Likewise.
703 (cp_parser_compound_statement): Likewise. Take bool for try block.
704 (cp_parser_selection_statement): Tidy if processing.
705 (cp_parser_already_scoped_statement): Rewrite to do what it says.
706 * pt.c (tsubst_copy): Move STMT_EXPR to tsubst_expr.
707 (tsubst_expr): Rewrite STMT_EXPR processing. Handle STATEMENT_LIST.
708 Mind COMPOUND_STMT_TRY_BLOCK, EXPR_STMT_STMT_EXPR_RESULT.
709 * semantics.c (do_poplevel, do_pushlevel): Use statement lists.
710 (finish_cond): New, rewritten from FINISH_COND.
711 (simplify_loop_decl_cond): New.
712 (finish_expr_stmt): Avoid nested EXPR_STMTs.
713 (begin_if_stmt, finish_if_stmt_cond, finish_then_clause,
714 begin_else_clause, finish_else_clause, finish_if_stmt,
715 begin_while_stmt, finish_while_stmt_cond, finish_while_stmt,
716 begin_do_stmt, finish_do_body, begin_for_stmt, finish_for_init_stmt,
717 finish_for_cond, finish_for_stmt, begin_switch_stmt,
718 finish_switch_cond, finish_switch_stmt, begin_try_block,
719 finish_try_block, finish_cleanup_try_block, finish_function_try_block,
720 finish_handler_sequence, finish_function_handler_sequence,
721 begin_handler, finish_handler_parms, finish_handler,
722 begin_stmt_expr, finish_stmt_expr_expr, finish_stmt_expr): Rewrite
723 using statement lists.
724 (begin_compound_stmt): Replace has_no_scope argument with flags.
725 Update all callers. Use statement lists.
726 (finish_compound_stmt): Likewise.
727 (finish_decl_cleanup, finish_eh_cleanup): Use push_cleanup.
728 (current_scope_stmt_stack): Remove.
729 (simplify_aggr_init_expr): Don't muck with TREE_CHAIN.
730 * typeck2.c (split_nonconstant_init_1, split_nonconstant_init):
731 Rewrite with statement lists.
732
733 2004-06-15 Alexandre Oliva <aoliva@redhat.com>
734
735 * parser.c: Change all assignments of c_lex_string_translate
736 to true and false to 1 and 0.
737 (cp_lexer_read_token): Convert type of the translated string.
738 (cp_parser_skip_to_closing_parentheses): Preserve original
739 value of c_lex_string_translate, and set it to -1 while
740 running.
741 (cp_parser_cache_group): Likewise.
742 (cp_parser_cache_group_1): Renamed.
743 (cp_parser_asm_operand_list): Remove redundant setting of
744 c_lex_string_translate.
745 (cp_parser_primary_expression) [CPP_STRING, CPP_WSTRING]:
746 Handle chained strings.
747
748 2004-06-12 Andrew Pinski <apinski@apple.com>
749
750 PR c++/14639
751 Revert:
752 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
753
754 * cp-tree.h: Fix typo.
755
756 * cp-tree.h: Include cgraph.h
757 (DECL_NEEDED_P): Use cgraph_*node on the decl instead of
758 TREE_SYMBOL_REFERENCED on the DECL_ASSEMBLER_NAME of the decl.
759
760 2004-06-12 Jason Merrill <jason@redhat.com>
761
762 PR tree-optimization/14107
763 * decl.c (finish_function): Warn about no return in all functions.
764
765 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
766
767 * cp-tree.h (struct language_function): Remove cannot_inline.
768 * decl.c (save_function_data): cannot_inline is no more.
769 (cxx_push_function_context): Likewise.
770 * decl2.c (start_objects, start_static_storage_duration_function):
771 Reset DECL_INLINE, set DECL_UNINLINABLE.
772
773 2004-06-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
774
775 PR c++/15967
776 * search.c (lookup_field): Propagate the ambiguity list.
777 (lookup_fnfields): Likewise.
778
779 2004-06-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
780
781 PR c++/15947
782 * parser.c (cp_parser_template_name): Ctors/dtors never need a
783 template keyword to disambiguate.
784
785 2004-06-14 Mark Mitchell <mark@codesourcery.com>
786
787 PR c++/15096
788 * decl.c (grokdeclarator): Ignore pointer-to-members when
789 computing template depth.
790
791 PR c++/14930
792 * name-lookup.c (pushtag): Do not try to put class declarations in
793 explicit specialization scopes.
794
795 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
796
797 * decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.
798
799 2004-06-11 Mark Mitchell <mark@codesourcery.com>
800
801 PR c++/15862
802 * name-lookup.c (unqualified_namespace_lookup): Do not ignore type
803 bindings for undeclared built-ins.
804
805 2004-06-11 Giovanni Bajo <giovannibajo@gcc.gnu.org>
806
807 * typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
808 appear at the correct location.
809
810 2004-06-10 Jason Merrill <jason@redhat.com>
811
812 PR c++/15875
813 Revert:
814 2004-06-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
815 * init.c (build_offset_ref): Build SCOPE_REF with non-null
816 TREE_TYPE for non-dependent names.
817 * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
818 unknown_type_node as its TREE_TYPE.
819 * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
820 * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
821 (dump_expr) <SCOPE_REF case>: Likewise.
822
823 2004-06-10 Mark Mitchell <mark@codesourcery.com>
824
825 PR c++/15227
826 * parser.c (cp_parser_direct_declarator): Robustify.
827
828 PR c++/15877
829 * pt.c (tsubst_copy): Use decl_constant_value on enumeration
830 constants in non-dependent contexts.
831
832 PR c++/14211
833 PR c++/15076
834 * typeck.c (build_static_cast): Wrap casts in NON_LVALUE_EXPR when
835 necessary.
836
837 2004-06-10 Jakub Jelinek <jakub@redhat.com>
838
839 PR c++/14791
840 * decl.c (duplicate_decls): Handle fileptr_type_node arguments
841 specially.
842
843 2004-06-09 Mark Mitchell <mark@codesourcery.com>
844
845 Revert:
846 PR c++/15815
847 2004-06-07 Mark Mitchell <mark@codesourcery.com>
848 * lex.c (handle_pragma_interface): Deprecate.
849 (handle_pragma_implementation): Likewise.
850
851 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
852
853 * g++spec.c (lang_specific_driver): Remove check for -lm
854 and -lmath when check it see if it was the math library.
855
856 2004-06-08 Giovanni Bajo <giovannibajo@gcc.gnu.org>
857
858 PR c++/7841
859 * parser.c (cp_parser_direct_declarator): Reject constructor named
860 as qualified template-id.
861
862 2004-06-07 Mark Mitchell <mark@codesourcery.com>
863
864 PR c++/15815
865 * lex.c (handle_pragma_interface): Deprecate.
866 (handle_pragma_implementation): Likewise.
867
868 2004-06-07 Mark Mitchell <mark@codesourcery.com>
869
870 PR c++/15766
871 * parser.c (cp_parser_iteration_statement): Fix typo in error
872 message.
873
874 PR c++/14777
875 * pt.c (tsubst_default_argument): Do not defer access checks
876 while substituting into the default argument.
877
878 PR c++/15554
879 * pt.c (tsubst_copy): Do not try to substitute for an enumeration
880 constant in a non-dependent context.
881
882 PR c++/15057
883 * except.c (build_throw): Ensure that temp_expr has been
884 initialized.
885
886 2004-06-06 Roger Sayle <roger@eyesopen.com>
887
888 * cp/cp-tree.h (lvalue_or_else): Add function prototype.
889
890 2004-06-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
891
892 PR c++/15503
893 * parser.c (cp_parser_mem_initializer_id): Gracefully reject
894 'typename', and accept 'template'.
895
896 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
897 Jan Hubicka <jh@suse.cz>
898
899 PR c++/14639
900 * method.c (use_think): Do not mark thunk as referenced.
901
902 2004-06-03 Matt Austern <austern@apple.com>
903
904 PR c++/15428
905 * decl2.c (maybe_emit_vtables): If TARGET_WEAK_NOT_IN_ARCHIVE_TOC
906 is nonzero, and if we see a noninline definition of a key method,
907 make the vtables nonweak.
908
909 2004-06-02 Matt Austern <austern@apple.com>
910
911 * cp-tree.h (instantiate_decl): new boolean parameter,
912 undefined_ok. Current behavior is equivalent to its being 0.
913 * decl2.c (mark_used): Add new argument when calling instantiate_decl
914 * pt.c (mark_decl_instantiated): Unconditionally make
915 instantiations explicit unconditionally
916 (do_decl_instantiation): Don't call SET_DECL_EXPLICIT_INSTANTIATION,
917 since mark_decl_instantiated now does it.
918 (instantiate_class_member): New. Instantiate a member of an
919 explicitly instantiated class template.
920 (do_type_instantiation): Explicitly instantiate members of an
921 explicitly instantiated class template.
922 (instantiate_decl): if undefined_ok is nonzero, and if we're
923 trying to explicitly instantiated a template with no definition,
924 change it to an implicit instantiation.
925 (instantiate_pending_templates): Add new argument to instantiate_decl.
926 * tree.c (cp_cannot_inline_tree_fn): Likewise.
927
928 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
929
930 * cp-tree.h: Fix typo.
931
932 * cp-tree.h: Include cgraph.h
933 (DECL_NEEDED_P): Use cgraph_*node on the decl instead of
934 TREE_SYMBOL_REFERENCED on the DECL_ASSEMBLER_NAME of the decl.
935
936 2004-06-01 Jason Merrill <jason@redhat.com>
937
938 PR c++/15142
939 * call.c (call_builtin_trap): Remove type parm.
940 (convert_arg_to_ellipsis): Change a non-POD argument to integer type.
941 (build_x_va_arg): Dereference a null pointer for a non-POD argument.
942
943 2004-06-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
944
945 PR c++/13092
946 * init.c (build_offset_ref): Build SCOPE_REF with non-null
947 TREE_TYPE for non-dependent names.
948 * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
949 unknown_type_node as its TREE_TYPE.
950 * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
951 * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
952 (dump_expr) <SCOPE_REF case>: Likewise.
953
954 2004-06-01 Richard Henderson <rth@redhat.com>
955 Andrew Pinski <pinskia@physics.uc.edu>
956
957 * lex.c (reswords): Rename "__offsetof" to "__builtin_offsetof".
958 * parser.c (struct cp_parser): Remove in_offsetof.
959 (cp_parser_new): Don't set it.
960 (cp_parser_unary_expression): Don't check it.
961 (cp_parser_postfix_open_square_expression): Split out from ...
962 (cp_parser_postfix_expression): ... here.
963 (cp_parser_postfix_dot_deref_expression): Likewise.
964 (cp_parser_builtin_offsetof): New.
965 (cp_parser_primary_expression): Use it.
966
967 2004-06-01 Giovanni Bajo <giovannibajo@gcc.gnu.org>
968
969 PR c++/14932
970 * parser.c (cp_parser_postfix_expression): Allow subscript
971 operator in offsetof.
972
973 2004-05-31 Mark Mitchell <mark@codesourcery.com>
974
975 PR c++/15701
976 * friend.c (add_friend): Do not try to perform access checks for
977 functions from dependent classes.
978
979 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
980
981 * cxx-pretty-print.c (pp_cxx_colon_colon): Expor.
982 (pp_cxx_begin_template_argument_list): Turn into a function.
983 (pp_cxx_end_template_argument_list): Likewise.
984 (pp_cxx_separate_with): Define.
985 (pp_cxx_unqualified_id): Tidy.
986 (pp_cxx_primary_expression): Likewise.
987 (pp_cxx_postfix_expression): Likewise.
988 (pp_cxx_expression): Likewise.
989 (pp_cxx_simple_type_specifier): Likewise.
990 (pp_cxx_type_specifier_seq): Likewise.
991 (pp_cxx_parameter_declaration_clause): Likewise.
992 (pp_cxx_exception_specification): Likewise.
993 (pp_cxx_direct_declarator): Likewise.
994 (pp_cxx_type_id): Likewise.
995 * cxx-pretty-print.h (pp_cxx_whitespace): Export from
996 cxx-pretty-print.c.
997 (pp_cxx_left_paren): Likewise.
998 (pp_cxx_right_paren): Likewise.
999 (pp_cxx_left_brace): Likewise.
1000 (pp_cxx_right_brace): Likewise.
1001 (pp_cxx_left_bracket): Likewise.
1002 (pp_cxx_right_bracket): Likewise.
1003 (pp_cxx_dot): Likewise.
1004 (pp_cxx_identifier): Likewise.
1005 (pp_cxx_tree_identifier): Likewise.
1006 (pp_cxx_ampersand): New macro.
1007 (pp_cxx_star): Likewise.
1008 (pp_cxx_arrow): Likewise.
1009 (pp_cxx_semicolon): Likewise.
1010 (pp_cxx_complement): Likewise.
1011 (pp_cxx_begin_template_argument_list): Declaree.
1012 (pp_cxx_end_template_argument_list): Likewise.
1013 (pp_cxx_colon_colon): likewise.
1014
1015 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
1016
1017 * parser.c (cp_parser_simple_type_specifier): Explicitly test
1018 against NULL_TREE.
1019
1020 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
1021
1022 * call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c,
1023 typeck.c: Fix comment formatting.
1024
1025 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
1026
1027 * cp-lang.c (cp_expand_decl): Remove.
1028 (LANG_HOOKS_EXPAND_DECL): Use c_expand_decl.
1029
1030 2004-05-30 Andreas Jaeger <aj@suse.de>
1031
1032 * lang-specs.h: Add missing initializers for .ii.
1033
1034 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
1035
1036 * decl.c (cp_make_fname_decl): Free return value from
1037 fname_as_string.
1038
1039 2004-05-28 Mark Mitchell <mark@codesourcery.com>
1040
1041 PR c++/15083
1042 * decl2.c (delete_sanity): Set TREE_SIDE_EFFECTS on a DELETE_EXPR,
1043 even in a templat.e
1044 * init.c (build_new): Likewise.
1045
1046 PR c++/15640
1047 * name-lookup.c (arg_assoc): Robustify.
1048
1049 PR c++/15471
1050 * typeck.c (unary_complex_lvalue): Use context_for_name_lookup
1051 when determining the scope to use for a pointer to member.
1052 (lookup_anon_field): Give it external linkage.
1053 * cp-tree.h (lookup_anon_field): Declare it.
1054 * expr.c (cplus_expand_constant): Use it.
1055
1056 2004-05-28 Mark Mitchell <mark@codesourcery.com>
1057
1058 PR c++/14668
1059 * parser.c (cp_parser_simple_type_specifier): Call
1060 maybe_note_name_used_in_class.
1061
1062 2004-05-28 Tom Marshall <tmarshall@real.com>
1063
1064 PR c++/15214
1065 * class.c (finish_struct_1): Warn only if the dtor is non-private or
1066 the class has friends.
1067
1068 2004-05-27 Adam Nemet <anemet@lnxw.com>
1069
1070 PR c++/12883
1071 * decl.c (complete_array_type): Set TYPE_NEEDS_CONSTRUCTING and
1072 TYPE_HAS_NONTRIVIAL_DESTRUCTOR based on the underlying type.
1073
1074 2004-05-24 Geoffrey Keating <geoffk@apple.com>
1075
1076 * method.c (implicitly_declare_fn): Don't call defer_fn; abort
1077 if it might be needed.
1078 * pt.c (mark_decl_instantiated): Only call defer_fn if
1079 the function actually needs processing in finish_file.
1080 * decl2.c (finish_file): Add check that elements in
1081 deferred_fns_used are really needed there. Remove unnecessary
1082 test of DECL_SAVED_TREE.
1083
1084 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
1085
1086 * Make-lang.in: No need to specify $(LIBCPP).
1087
1088 2004-05-23 Mark Mitchell <mark@codesourcery.com>
1089
1090 PR c++/15044
1091 * parser.c (cp_parser_class_head): Robustify.
1092
1093 PR c++/15317
1094 * parser.c (cp_parser_decl_specifier_seq): Correct error in
1095 comment.
1096 (cp_parser_constructor_declarator_p): Treat attributes
1097 as decl-specifiers.
1098
1099 PR c++/15329
1100 * typeck.c (build_unary_op): Do not attempt to resolve casts to
1101 base classes in templates.
1102
1103 2004-05-23 Mark Mitchell <mark@codesourcery.com>
1104
1105 PR c++/15165
1106 * pt.c (instantiate_template): Robustify.
1107
1108 2004-05-23 Mark Mitchell <mark@codesourcery.com>
1109
1110 PR c++/15025
1111 * decl.c (xref_tag): Issue errors about redeclaring template
1112 classes as non-template classes.
1113
1114 2004-05-23 Mark Mitchell <mark@codesourcery.com>
1115
1116 PR c++/14821
1117 * name-lookup.c (supplement_binding): Allow redefinitions of
1118 namespace aliases.
1119
1120 PR c++/14883
1121 * parser.c (cp_parser_template_argument): Robustify.
1122
1123 2004-05-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1124
1125 * class.c (alter_access): Use %E format specifier to print an
1126 identifier node. Avoid looking at the IDENTIFIER_POINTER.
1127 (push_lang_context): Likewise.
1128 * decl.c (lookup_label): Likewise.
1129 (grokdeclarator): Likewise.
1130 * parser.c (cp_parser_check_for_invalid_template_id): Likewise.
1131 * pt.c (do_type_instantiation): Likewise.
1132 * tree.c (handle_java_interface_attribute): Likewise.
1133 (handle_com_interface_attribute): Likewise.
1134 (handle_init_priority_attribute): Likewise.
1135
1136 2004-05-22 Mark Mitchell <mark@codesourcery.com>
1137
1138 PR c++/15285
1139 PR c++/15299
1140 * pt.c (build_non_dependent_expr): Expand the set of tree nodes
1141 recognized as overloaded functions.
1142
1143 2004-05-22 Mark Mitchell <mark@codesourcery.com>
1144
1145 PR c++/15507
1146 * class.c (layout_nonempty_base_or_field): Do not try to avoid
1147 layout conflicts for unions.
1148
1149 PR c++/15542
1150 * typeck.c (build_x_unary_op): Instantiate template class
1151 specializations before looking for "operator &".
1152
1153 PR c++/15427
1154 * typeck.c (complete_type): Layout non-dependent array types, even
1155 in templates.
1156
1157 PR c++/15287
1158 * typeck.c (build_unary_op): Do not optimize "&x[y]" when in a
1159 template.
1160
1161 2004-05-22 Roger Sayle <roger@eyesopen.com>
1162
1163 * name-lookup.c (check_for_out_of_scope_variable): Avoid ICE by
1164 returning when TREE_TYPE is error_mark_node.
1165 * typeck.c (require_complete_type): Return error_mark_node if
1166 value's type is an error_mark_node.
1167
1168 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
1169
1170 * optimize.c (calls_setjmp_r): Remove.
1171 (calls_setjmp_p): Remove.
1172 * cp-tree.c (calls_setjmp_p): Remove.
1173 * decl.c (finish_function): Do not call calls_setjmp_p.
1174
1175 2004-05-18 Zack Weinberg <zack@codesourcery.com>
1176
1177 * decl.c (cp_finish_decl): Use mark_decl_referenced.
1178 * decl2.c (maybe_make_one_only): Likewise.
1179 * method.c (use_thunk): Likewise.
1180
1181 2004-05-18 Jason Merrill <jason@redhat.com>
1182
1183 * class.c (build_base_path): Tidy a bit.
1184
1185 2004-05-14 Geoffrey Keating <geoffk@apple.com>
1186
1187 * name-lookup.c (struct scope_binding): New.
1188 (EMPTY_SCOPE_BINDING): New.
1189 (lookup_using_namespace): Take a scope_binding instead of a
1190 cxx_binding.
1191 (qualified_lookup_using_namespace): Likewise.
1192 (cxx_binding_clear): Delete.
1193 (do_nonmember_using_decl): Use a scope_binding instead of a
1194 cxx_binding.
1195 (lookup_tag): Don't call select_decl.
1196 (ambiguous_decl): Don't return anything (and change callers to match).
1197 Take a scope_binding as the second parameter.
1198 (lookup_namespace_name): Use a scope_binding instead of a
1199 cxx_binding.
1200 (unqualified_namespace_lookup): Likewise.
1201 (lookup_qualified_name): Likewise.
1202 (select_decl): Take a scope_binding instead of a cxx_binding.
1203 Use macros rather than hand-coding tests for type-ness.
1204
1205 2004-05-13 Diego Novillo <dnovillo@redhat.com>
1206
1207 * cp-gimplify.c: Rename from cp-simplify.c.
1208 * Make-lang.in, optimize.c: Update.
1209
1210 2004-05-13 Diego Novillo <dnovillo@redhat.com>
1211
1212 Merge from tree-ssa-20020619-branch. See
1213 ChangeLog.tree-ssa for details.
1214
1215 * Make-lang.in, call.c, class.c, cp-lang.c, cp-tree.def,
1216 cp-tree.h, cvt.c, decl.c, decl2.c, error.c, except.c,
1217 expr.c, init.c, name-lookup.h, optimize.c, parser.c,
1218 pt.c, rtti.c, semantics.c, tree.c, typeck.c, typeck2.c:
1219 Merged.
1220 * cp-mudflap.c: New file.
1221 * cp-simplify.c:: New file.
1222
1223 2004-05-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1224
1225 PR c++/14389
1226 * decl2.c (check_classfn): For member templates, compare also the
1227 template parameters to match the declaration.
1228 * cp-tree.h: Adjust declaration of check_classfn.
1229 * decl.c (start_decl, grokfndecl): Adjust callers of check_classfn.
1230 * friend.c (do_friend): Likewise.
1231 * pt.c (tsubst_friend_function): Likewise.
1232
1233 2004-05-01 Zack Weinberg <zack@codesourcery.com>
1234
1235 * decl.c (reshape_init): Do not apply TYPE_DOMAIN to a VECTOR_TYPE.
1236 Instead, dig into the representation type to find the array bound.
1237
1238 2004-04-30 Jason Merrill <jason@redhat.com>
1239
1240 Refer to base members using COMPONENT_REFs where possible.
1241 * class.c (build_simple_base_path): New fn.
1242 (build_base_path): Use it for non-virtual base references.
1243 (layout_class_type): Change base fields to their real type
1244 after layout is done.
1245 * cp-tree.h (IS_FAKE_BASE_TYPE): New macro.
1246 * cp-lang.c (cxx_get_alias_set): Use it.
1247
1248 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
1249
1250 * class.c, cp-tree.h, decl.c, decl2.c, pt.c, rtti.c: Fix
1251 comment typos.
1252
1253 2004-04-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1254
1255 PR c++/15064
1256 * parser.c (cp_parser_postfix_expression): typeid operator cannot be
1257 used in integral constant expressions.
1258
1259 2004-04-22 Mark Mitchell <mark@codesourcery.com>
1260
1261 * init.c (build_aggr_init): Fix accidental use of C99 construct in
1262 previous change.
1263
1264 * class.c (initialize_array): Don't set TREE_HAS_CONSTRUCTOR on
1265 braced initializer.
1266 * cp-tree.h (BRACE_ENCLOSED_INITIALIZER_P): New macro.
1267 * decl.c (reshape_init): Use it.
1268 * init.c (perform_member_init): Remove redundant condition.
1269 (build_aggr_init): Adjust to handle brace-enclosed initializers
1270 correctly.
1271 (expand_default_init): Use BRACE_ENCLOSED_INITIALIZER_P.
1272
1273 * parser.c (cp_parser_initializer_clause): Do not set
1274 TREE_HAS_CONSTRUCTOR on the initializer.
1275 * rtti.c (tinfo_base_init): Likewise.
1276 (generic_initializer): Likewise.
1277 (ptr_initializer): Likewise.
1278 (ptm_initializer): Likewise.
1279 (class_initializer): Likewise.
1280 (get_pseudo_ti_init): Likewise.
1281 * typeck2.c (digest_init): Use BRACE_ENCLOSED_INITIALIZER_P.
1282
1283 2004-04-22 Alan Modra <amodra@bigpond.net.au>
1284
1285 * name-lookup.c (anonymous_namespace_name): Make static.
1286
1287 2004-04-19 Roger Sayle <roger@eyesopen.com>
1288
1289 PR middle-end/14531
1290 * class.c (build_base_path): Call fold whilst building the NULL
1291 pointer check expression trees.
1292
1293 2004-04-15 Bryce McKinlay <mckinlay@redhat.com>
1294
1295 * init.c (build_new_1): Don't use type size argument for Java
1296 _Jv_AllocObject call.
1297
1298 2004-04-09 Danny Smith <dannysmith@users.sourceforge.net>
1299
1300 * method.c (make_alias_for_thunk): Remove preprocessor guard on
1301 declaration and definition.
1302
1303 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
1304
1305 PR c++/14808
1306 * method.c (use_thunk): Test TARGET_USE_LOCAL_THUNK_ALIAS_P rather
1307 than ASM_OUTPUT_DEF.
1308
1309 2004-04-08 Jakub Jelinek <jakub@redhat.com>
1310
1311 * decl2.c (mark_used): Don't segfault if cfun != NULL but
1312 current_function_decl == NULL.
1313
1314 2004-04-05 Nathan Sidwell <nathan@codesourcery.com>
1315
1316 PR c++/3518
1317 * pt.c (check_cv_quals_for_unify): Ignore bogus CV quals at outer
1318 level.
1319
1320 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1321
1322 * init.c (decl_constant_value): Don't look at DECL_INITIAL
1323 of PARM_DECL.
1324 * tree.c (bot_manip, build_min): Don't look at TREE_CONSTANT
1325 or TREE_SIDE_EFFECTS of a type.
1326
1327 2004-04-02 Nathan Sidwell <nathan@codesourcery.com>
1328
1329 PR c++/14007
1330 * pt.c (check_cv_quals_for_unify): Correct logic for disallowed
1331 cv-qualifier unification.
1332 * tree.c (cp_build_qualified_type_real): Renable DR295 logic.
1333
1334 2004-04-02 Jan Hubicka <jh@suse.cz>
1335
1336 * cp-lang. (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): Define.
1337 * cp-tree.h (cp_update_decl_after_saving): Declare.
1338 * tree.c (cp_update_decl_after_saving): Define.
1339
1340 2004-04-01 Mark Mitchell <mark@codesourcery.com>
1341
1342 PR c++/14803
1343 * typeck.c (get_delta_difference): Call fold before returning the
1344 value.
1345
1346 2004-04-01 Richard Henderson <rth@redhat.com>
1347
1348 PR c++/14804
1349 * decl.c (cp_finish_decl): Preserve TREE_READONLY more often.
1350 * typeck2.c (split_nonconstant_init): Clear TREE_READONLY.
1351
1352 2004-04-01 Mark Mitchell <mark@codesourcery.com>
1353
1354 PR c++/14810
1355 * name-lookup.c (maybe_push_cleanup_level): Robustify.
1356
1357 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1358
1359 * class.c (VTT_TOP_LEVEL_P): Use unsigned_flag directly.
1360
1361 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1362
1363 * call.c (joust): Use TYPE_UNSIGNED, not TREE_UNSIGNED.
1364 * class.c (check_bitfield_decl): Likewise.
1365 * cvt.c (type_promotes_to): Likewise.
1366 * decl.c (finish_enum): Likewise.
1367 * mangle.c (write_builtin_type): Likewise.
1368 * semantics.c (finish_switch_cond, finish_unary_op_expr): Likewise.
1369 * typeck.c (type_after_usual_arithmetic_conversions): Likewise.
1370 (build_binary_op): Likewise.
1371
1372 2004-03-31 Jan Hubicka <jh@suse.cz>
1373
1374 * tree.h (optimize_function): Kill prototype.
1375 * optimize.c (dump_function, optimize_function, dump_finction): Kill.
1376 * semantics.c (expand_body): Kill.
1377
1378 2004-03-30 Mark Mitchell <mark@codesourcery.com>
1379
1380 PR c++/14724
1381 * decl.c (start_decl_1): Do not decide whether or not to create a
1382 new cleanup level until after the type has been completed.
1383
1384 PR c++/14763
1385 * pt.c (tsubst_default_argument): Clear current_function_decl.
1386
1387 2004-03-30 Zack Weinberg <zack@codesourcery.com>
1388
1389 * name-lookup.c, parser.c: Use new shorter form of GTY markers.
1390
1391 2004-03-29 Zack Weinberg <zack@codesourcery.com>
1392
1393 * error.c (dump_function_name): If T's DECL_LANG_SPECIFIC
1394 is null, just print the literal name and return.
1395
1396 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
1397
1398 * cxx-pretty-print.c: Fix comment typos.
1399
1400 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
1401
1402 * cxx-pretty-print.c, cxx-pretty-print.h, decl.h, friend.c:
1403 Update copyright.
1404
1405 2004-03-23 Ziemowit Laski <zlaski@apple.com>
1406
1407 * Make-lang.in (cp/mangle.o): Depend on $(TARGET_H).
1408 * mangle.c (write_type): Add call to 'mangle_fundamental_type'
1409 target hook.
1410
1411 2004-03-23 Zack Weinberg <zack@codesourcery.com>
1412
1413 PR 12267, 12391, 12560, 13129, 14114, 14133
1414 * cp-lang.c (c_reset_state): Delete.
1415 (push_file_scope, pop_file_scope): New stubs.
1416 * parser.c (c_parse_file): Call sorry() here if called more than once.
1417
1418 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1419
1420 * typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
1421 for INTEGER_CST.
1422
1423 2004-03-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1424
1425 * cxx-pretty-print.c (pp_cxx_parameter_declaration_clause): Declare.
1426
1427 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1428
1429 * error.c (enum pad): Remove.
1430 (dump_qualifiers): Likewise.
1431 (dump_type): Replace dump_qualifiers with pp_cxx_cv_qualifier_seq.
1432 (dump_aggr_type): Likewise.
1433 (dump_type_suffix): Likewise.
1434 (dump_simple_decl): Likewise.
1435 (dump_function_decl): Likewise.
1436 (cv_to_string): Likewise.
1437 (dump_type_prefix): Likewise. Adjust return void.
1438 * cxx-pretty-print.c (pp_cxx_cv_qualifier_seq): Move to
1439 cxx_pretty_print.h.
1440 (pp_cxx_template_keyword_if_needed): Document.
1441 (pp_cxx_qualified_id): Document case FUNCTION_DECL. Tidy.
1442 (pp_cxx_expression): Handle NON_DEPENDENT_EXPR and
1443 MUST_NOT_THROW_EXPR.
1444
1445 2004-03-21 Mark Mitchell <mark@codesourcery.com>
1446
1447 PR c++/14616
1448 * decl.c (cp_finish_decl): Compute the size of arrays declared in
1449 templates, if their type is non-dependent.
1450
1451 2004-03-19 Mark Mitchell <mark@codesourcery.com>
1452
1453 * call.c (build_op_delete_call): Do not forget the placement
1454 arguments when iterating through mutiple delete operators.
1455
1456 * cp-tree.h (svaed_scope): Remove last_parms.
1457 (NEW_DELETE_OPNAME_P): New macro.
1458 (last_function_parms): Remove.
1459 (do_friend): Adjust prototype.
1460 * decl.c (grokparms): Return the PARM_DECLs directly, rather than
1461 using last_function_parms.
1462 (grokfndecl): Take the PARM_DECLs as an argument, rather than
1463 using last_function_parms.
1464 (grokdeclarator): Adjust accordingly. Do not form METHOD_TYPEs
1465 for class-specific operator new and operator delete.
1466 (grok_op_properties): Do not look for allocation functions with
1467 METHOD_TYPEs.
1468 (start_function): Use DECL_ARGUMENTS instead of
1469 last_function_parms.
1470 * decl.h (last_function_parms): Do not declare.
1471 * decl2.c (grokclassfn): Do not use last_function_parms.
1472 * friend.c (do_friend): Remove parmdecls parameter.
1473 * name-lookup.c (push_to_top_level): Do not save last_function_parms.
1474 (pop_from_top_level): Do not restore it.
1475 * pt.c (check_explicit_specialization): Do not adjust
1476 last_function_parms.
1477
1478 * name-lookup.c (do_local_using_decl): Create a local binding for
1479 types brought in via using declarations.
1480
1481 * name-lookup.c (lookup_arg_dependent): Handle block-scope
1482 function declarations correctly.
1483
1484 * semantics.c (finish_id_expression): Correct handling of
1485 conversion operators to dependent types.
1486
1487 * typeck.c (lookup_destructor): Allow the use of destructors from
1488 base classes.
1489
1490 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1491
1492 * cxx-pretty-print.c (pp_cxx_unqualified_id): Use
1493 TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS.
1494 * search.c (dfs_unuse_fields): Add two more TREE_CODES that mean
1495 the field is named TEMPLATE_TYPE_PARM_INDEX.
1496
1497 2004-03-19 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1498
1499 PR c++/14545
1500 * parser.c (cp_parser_functional_cast): A cast to anything
1501 but integral or enumaration type is not an integral constant
1502 expression.
1503 * pt.c (value_dependent_expression_p): Handle cast expressions
1504 without operands (such as "int()").
1505
1506 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1507
1508 * semantics.c (finish_pseudo_destructor_expr): Allow differing
1509 cv-qualification between the type named by the
1510 pseudo-destructor-name and the object-type.
1511
1512 * search.c (accessible_base_p): Handle non-proper bases.
1513
1514 * name-lookup.c (do_nonmember_using_decl): If a using declaration
1515 refers to a single overloaded function, set the type of the
1516 function.
1517 * tree.c (lvalue_type): Simplify.
1518 * typeck.c (type_unknown_p): Do not assume all OVERLOADs have an
1519 unknown type.
1520 (build_unary_op): Handle OVERLOADs with known types.
1521
1522 * decl.c (duplicate_decls): Do not destroy DECL_ARGUMENTS for
1523 function templates.
1524
1525 * parser.c (cp_parser_postfix_expression): Handle the use of
1526 "typename" in non-dependent contexts. Convert appropriately when
1527 when using a qualified name after "->" or ".".
1528
1529 * call.c (conditional_conversion): Honor the requirement that some
1530 conversions refer to the original object.
1531
1532 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1533
1534 * call.c (build_conditional_expr): Do not call force_rvalue for
1535 operands of void_type when the conditional expression itself has
1536 void type.
1537 * name-lookup.c (pushdecl): Don't consider a declaration of a
1538 function named "main" to be an overload of a type named "main".
1539 * parser.c (cp_parser_template_name): Perform name lookup when the
1540 template name is proceeded by "template" if the qualifying scope
1541 is non-dependent.
1542 * typeck.c (composite_pointer_type_r): Correctly handle
1543 pointer-to-member types.
1544 (build_const_cast): Likewise.
1545
1546 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1547
1548 * cp-tree.def (TEMPLATE_TYPE_PARM, TYPEOF_TYPE): Update comments.
1549 * cp-tree.h (NEW_EXPR_USE_GLOBAL, DELETE_EXPR_USE_GLOBAL): Add check.
1550 (DELETE_EXPR_USE_VEC, COMPOUND_EXPR_OVERLOADED): Likewise.
1551 (KOENIG_LOOKUP_P, PTRMEM_OK_P, TEMPLATE_TYPE_PARM_INDEX): Likewise.
1552 (TYPENAME_TYPE_FULLNAME): Add check and use type.values.
1553 (TYPEOF_TYPE_EXPR): New macro.
1554 * class.c (finish_struct_bits): Use TYPE_VFIELD and TYPE_METHODS.
1555 * error.c (dump_type): Use TYPEOF_TYPE_EXPR.
1556 * pt.c (tsubst): Likewise.
1557 * semantics.c (finish_typeof): Likewise.
1558 * search.c (dfs_unuse_fields): Handle TYPENAME_TYPE, TYPEOF_TYPE,
1559 and TEMPLATE_TYPE_PARM.
1560 * typeck.c (comptypes): Use TYPE_ORIG_SIZE_TYPE, not TYPE_DOMAIN.
1561 (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1562
1563 2004-03-16 Mark Mitchell <mark@codesourcery.com>
1564
1565 PR c++/14586
1566 * cp-tree.h (build_new_op): Change prototype.
1567 (build_x_binary_op): Likewise.
1568 * call.c (build_new_op): Add overloaded_p parameter.
1569 * decl2.c (grok_array_decl): Adjust call to build_new_op.
1570 * parser.c (cp_parser_binary_expression): Note that uses of
1571 overloaded operators prevents an expression from being considered
1572 an integral constant.
1573 * pt.c (tsubst_copy_and_build): Adjust calls to build_new_op and/or
1574 build_x_binary_op.
1575 * semantics.c (finish_call_expr): Likewise.
1576 * typeck.c (rationalize_conditional_expr): Likewise.
1577 (build_x_indirect_ref): Likewise.
1578 (build_x_binary_op): Likewise.
1579 (build_x_unary_op): Likewise.
1580 (build_x_compound_expr): Likewise.
1581 (build_modify_expr): Likewise.
1582 * typeck2.c (build_x_arrow): Likewise.
1583
1584 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1585
1586 * cp-lang.c, ptree.c: Update copyright.
1587
1588 2004-03-13 Mark Mitchell <mark@codesourcery.com>
1589
1590 PR c++/14550
1591 * parser.c (cp_parser_non_integral_constant_expression): Encode
1592 more of the idiom that surrounded calls to this function within
1593 the function itself
1594 (cp_parser_primary_expression): Adjust accordingly.
1595 (cp_parser_postfix_expression): Likewise.
1596 (cp_parser_unary_expression): Likewise.
1597 (cp_parser_cast_expression): Likewise.
1598 (cp_parser_assignment_expression): Likewise.
1599 (cp_parser_expression): Likewise.
1600 (cp_parser_new_expression): Note that new-expressions are not
1601 allowed in integral constant expressions.
1602 (cp_parser_delete_expression): Likewise.
1603
1604 2004-03-12 Matt Austern <austern@apple.com>
1605
1606 * decl2.c (maybe_make_one_only): Look at
1607 TARGET_EXPLICIT_INSTANTIATION_ONE_ONLY when deciding whether
1608 to make an explicit instantiation weak.
1609 * method.c (use_thunk): Make sure we call comdat_linkage
1610 when appropriate.
1611 * pt.c (do_type_instantiation): On systems where weak symbols
1612 don't go in a static archive's TOC, explicit instantiation of a
1613 class must imply *explicit* instantiation of its memeber.
1614
1615 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
1616
1617 * call.c, cp-tree.h, pt.c: Fix comment typos.
1618
1619 2004-03-10 Mark Mitchell <mark@codesourcery.com>
1620
1621 PR c++/14510
1622 * decl.c (xref_tag): Disregard non-type declarations when
1623 looking up a tagged type.
1624
1625 2004-03-09 Nathan Sidwell <nathan@codesourcery.com>
1626
1627 PR c++/14397
1628 * call.c (convert_like_real): Build a const qualified temporary,
1629 when testing ctor access.
1630
1631 2004-03-09 Mark Mitchell <mark@codesourcery.com>
1632
1633 * call.c (initialize_reference): Fix typo.
1634
1635 2004-03-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1636
1637 PR c++/14409
1638 * pt.c (determine_specialization): For member templates, match also
1639 constness.
1640
1641 PR c++/14448
1642 * parser.c (cp_parser_initializer_clause): Fold initializer if it is
1643 non-dependent.
1644 * pt.c (tsubst_copy_and_build): Handle NOP_EXPRs.
1645
1646 2004-03-09 Mark Mitchell <mark@codesourcery.com>
1647
1648 PR c++/14230
1649 * call.c (initialize_reference): Handle initializers that are
1650 class-member access expressions applies to rvalues.
1651
1652 2004-03-09 Mark Mitchell <mark@codesourcery.com>
1653
1654 PR c++/14432
1655 * name-lookup.c (supplement_binding): Ignore functions that are
1656 marked DECL_ANTICIPATED.
1657
1658 2004-03-08 Mark Mitchell <mark@codesourcery.com>
1659
1660 PR c++/14401
1661 * class.c (check_field_decls): Complain about non-static data
1662 members of reference type in unions. Propagate
1663 CLASSTYPE_REF_FIELDS_NEED_INIT and
1664 CLASSTYPE_READONLY_FIELDS_NEED_INIT from the types of non-static
1665 data members.
1666 * init.c (perform_member_init): Complain about mbmers with const
1667 type that are not explicitly initialized.
1668
1669 2004-03-08 Mark Mitchell <mark@codesourcery.com>
1670
1671 * class.c (check_methods): Don't use IDENTIFIER_ERROR_LOCUS.
1672 * cp-tree.h (DECL_INVALID_OVERRIDER_P): New macro.
1673 (lang_identifier): Remove implicit_decl and error_locus.
1674 (IDENTIFIER_IMPLICIT_DECL): Remove.
1675 (SET_IDENTIFIER_IMPLICTI_DECL): Likewise.
1676 (IDENTIFIER_ERROR_LOCUS): Likewise.
1677 (SET_IDENTIFIER_ERROR_LOCUS): Likewise.
1678 (TYPE_ASSEMBLER_NAME_STRING): Likewise.
1679 (TYPE_ASSEMBLER_NAME_LENGTH): Likewise.
1680 (implicitly_declare): Remove.
1681 * decl.c (warn_extern_redeclared_static): Remove check of
1682 IDENTIFIER_IMPLICIT_DECL.
1683 (duplicate_decls): Don't check IDENTIFIER_ERROR_LOCUS.
1684 (implicitly_declare): Remove.
1685 (grok_ctor_properties): Don't set IDENTIFIER_ERROR_LOCUS.
1686 (start_function): Don't check IDENTIFIER_IMPLICIT_DECL.
1687 (start_method): Don't check IDENTIFIER_ERROR_LOCUS.
1688 * lex.c (unqualified_name_lookup_error): Create a dummy VAR_DECL
1689 in the innermost scope, rather than at namespace scope.
1690 * name-lookup.c (push_local_binding): Give it external linkage.
1691 (pushdecl): Remove dead code.
1692 * name-lookup.h (push_local_binding): Declare it.
1693 * ptree.c (cxx_print_identifier): Don't print
1694 IDENTIFIER_IMPLICIT_DECL or IDENTIFIER_ERROR_LOCUS.
1695 * search.c (check_final_overrider): Use DECL_INVALID_OVERRIDER_P,
1696 not IDENTIFIER_ERROR_LOCUS.
1697 * typeck.c (build_function_call): Remove dead code.
1698
1699 2004-03-08 Jason Merrill <jason@redhat.com>
1700
1701 PR c++/13170
1702 * decl.c (xref_tag): Remove attribute handling.
1703 * cp-tree.h: Adjust prototype.
1704 * decl.c, parser.c, rtti.c: Adjust callers.
1705 * parser.c (cp_parser_class_head): Pass back attributes in the
1706 class head.
1707 (cp_parser_class_specifier): Adjust.
1708
1709 2004-03-08 Matt Austern <austern@apple.com>
1710
1711 PR debug/14079
1712 * name-lookup.c (add_decl_to_level): Add extern variables, as well
1713 as static, to static_decls array.
1714
1715 2004-03-05 Jason Merrill <jason@redhat.com>
1716
1717 * tree.c (list_hash_pieces): s/TYPE_HASH/TREE_HASH/.
1718
1719 2004-03-04 Geoffrey Keating <geoffk@apple.com>
1720
1721 * decl.c (grokfndecl): Update old incorrect comment.
1722 (grokvardecl): Diagnose C++ variables of type with no linkage.
1723
1724 2004-03-01 Mark Mitchell <mark@codesourcery.com>
1725
1726 PR c++/14369
1727 * pt.c (build_non_dependent_expr): Do not create a
1728 NON_DEPENDENT_EXPR for a THROW_EXPR.
1729
1730 2004-03-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1731
1732 PR c++/14369
1733 * error.c (dump_expr): Handle THROW_EXPR.
1734
1735 2004-03-01 Mark Mitchell <mark@codesourcery.com>
1736
1737 PR c++/14360
1738 * parser.c (cp_parser_postfix_expression): Do not perform Koenig
1739 lookup if ordinary name-lookup finds a non-function.
1740 * pt.c (tsubst_copy_and_build): Likewise.
1741
1742 PR c++/14361
1743 * parser.c (cp_parser_late_parsing_default_args): Check that there
1744 are no extra tokens after the end of the default-argument
1745 expression.
1746
1747 2004-03-01 Mark Mitchell <mark@codesourcery.com>
1748
1749 PR c++/14324
1750 * lex.c (retrofit_lang_decl): Treat entities with no linkage as
1751 having C++ linkage for name-mangling purposes.
1752
1753 PR c++/14260
1754 * parser.c (cp_parser_direct_declarator): Recognize constructor
1755 declarators that use a template-id to name the class being
1756 constructed.
1757
1758 PR c++/14337
1759 * pt.c (tsubst_qualified_id): Handle dependent qualifying scopes.
1760 (tsubst_expr): Do not call tsubst_copy, even when
1761 processing_template_decl.
1762
1763 2004-03-01 Jeff Law <law@redhat.com>
1764
1765 * init.c (build_vec_delete_1): Convert 2nd argument to NE_EXPR to
1766 the proper type.
1767
1768 2004-02-29 Mark Mitchell <mark@codesourcery.com>
1769
1770 PR c++/14138
1771 * name-lookup.h (push_scope): Change prototype.
1772 * name-lookup.c (push_scope): Do not reenter the current class
1773 scope.
1774 * decl.c (grokfndecl): Check return code from push_scope before
1775 calling pop_scope.
1776 * decl2.c (check_classfn): Likewise.
1777 * parser.c (cp_parser_conversion_function_id): Likewise.
1778 (cp_parser_init_declarator): Likewise.
1779 (cp_parser_direct_declarator): Likewise.
1780 (cp_parser_class_specifier): Likewise.
1781 (cp_parser_class_head): Likewise.
1782 (cp_parser_lookup_name): Likewise.
1783 (cp_parser_constructor_declarator_p): Likewise.
1784 * pt.c (instantiate_class_template): Likewise.
1785 (resolve_typename_type): Likewise.
1786
1787 2004-02-29 Mark Mitchell <mark@codesourcery.com>
1788
1789 PR c++/14267
1790 * typeck.c (build_modify_expr): Remove more of the cast-as-lvalue
1791 extension.
1792
1793 PR debug/12103
1794 * class.c (update_vtable_entry_for_fn): Do not go through
1795 covariance machinery if the type returned by an overrider is the
1796 same as the original.
1797
1798 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
1799
1800 * call.c: Fix a comment typo.
1801
1802 2004-02-27 Ziemowit Laski <zlaski@apple.com>
1803
1804 * tree.c (pod_type_p): Treat VECTOR_TYPEs as PODs.
1805
1806 2004-02-26 Mark Mitchell <mark@codesourcery.com>
1807
1808 PR c++/14278
1809 * parser.c (cp_parser_parameter_declaration_list): Commit
1810 to fewer tentative parses.
1811
1812 2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1813
1814 PR c++/14284
1815 * pt.c (dependent_type_p_r): A template template parameter is a
1816 dependent type.
1817
1818 2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1819
1820 PR c++/14246
1821 * mangle.c (write_template_arg_literal): Don't rely on identity for
1822 boolean constants.
1823
1824 2004-02-24 Jason Merrill <jason@redhat.com>
1825
1826 * tree.c (build_exception_variant): Use check_qualified_type.
1827
1828 2004-02-23 Zack Weinberg <zack@codesourcery.com>
1829 Kazu Hirata <kazu@cs.umass.edu>
1830
1831 * decl.c (cxx_init_decl_processing): Don't check
1832 flag_writable_strings.
1833
1834 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
1835
1836 PR c++/14156
1837 * typeck.c (maybe_warn_about_returning_address_of_location):
1838 Change check for VAR_DECL to use DECL_P instead.
1839
1840 2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1841
1842 PR c++/14250
1843 * cvt.c (build_expr_type_conversion): Type must be complete before
1844 looking up for conversions.
1845
1846 2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1847
1848 PR c++/14143
1849 * name-lookup.c (arg_assoc_class): Don't look into template
1850 arguments if it is not a primary template.
1851
1852 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1853
1854 PR c++/12007
1855 * method.c (use_thunk): Always clone function argument tree.
1856
1857 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1858
1859 PR c++/14199
1860 * pt.c (tsubst_copy): Call mark_used for a PARM_DECL.
1861
1862 PR c++/14173
1863 * semantics.c (begin_class_definition): Set TYPE_PACKED correctly
1864 for all type variants.
1865
1866 2004-02-19 Mark Mitchell <mark@codesourcery.com>
1867
1868 PR c++/13927
1869 * decl.c (duplicate_decls): Return error_mark_node for invalid
1870 redeclarations.
1871 * name-lookup.c (push_namespace): Ignore the return value from
1872 pushdecl.
1873 * pt.c (push_template_decl_real): Robustify.
1874
1875 PR c++/14186
1876 * name-lookup.c (push_class_level_binding): Do not complain about
1877 adding a binding for a member whose name is the same as the
1878 enclosing class if the member is located in a base class of the
1879 current class.
1880
1881 2004-02-19 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1882
1883 PR c++/14181
1884 * parser.c (cp_parser_new_expression): Parse an ill-formed
1885 direct-new-declarator after a parenthesized type-id to emit good
1886 diagnostic.
1887
1888 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1889
1890 * cp-tree.def, cvt.c: Update copyright.
1891
1892 2004-02-17 Mark Mitchell <mark@codesourcery.com>
1893
1894 PR c++/11326
1895 * cp-tree.h (abi_version_at_least): Remove.
1896 * mangle.c: Include flags.h.
1897
1898 2004-02-15 Mark Mitchell <mark@codesourcery.com>
1899
1900 PR c++/13971
1901 * call.c (build_conditional_expr): Handle conversions between
1902 class types which result in differently cv-qualified type
1903 variants.
1904
1905 PR c++/14086
1906 * class.c (delete_duplicate_fields_1): Remove.
1907 (delete_duplicate_fields): Likewise.
1908 (finish_struct_anon): Remove check for members with the same name
1909 as their enclosing class.
1910 (check_field_decls): Do not call duplicate_fields.
1911 * decl.c (grokdeclarator): Remove check for static data members
1912 with the same name as their enclosing class.
1913 * name-lookup.c (push_class_level_binding): Check for members with
1914 the same name as their enclosing class.
1915
1916 2004-02-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1917
1918 PR c++/14085
1919 * error.c (dump_decl): Handle TEMPLATE_TYPE_PARM.
1920
1921 2004-02-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1922
1923 PR c++/13635
1924 * pt.c (push_template_decl_real): Make sure DECL_TI_ARGS of DECL
1925 has full set of arguments.
1926
1927 2004-02-13 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1928
1929 PR c++/13927
1930 * error.c (dump_decl) <ALIAS_DECL>: Dump as simple declarations.
1931
1932 2004-02-13 Mark Mitchell <mark@codesourcery.com>
1933
1934 PR c++/14122
1935 * cp-tree.h (delete_sanity): Change prototype.
1936 * decl2.c (delete_sanity): Make doing_vec a bool, not an int.
1937 Remove dead code. Adjust code to warn about deleting an array.
1938 * typekc.c (decay_conversion): Use build_address and build_nop.
1939
1940 PR c++/14108
1941 * search.c (accessible_p): Do not check access in thunks.
1942
1943 PR c++/14083
1944 * call.c (build_conditional_expr): Call force_rvalue on the
1945 non-void operand in the case that one result is a throw-expression
1946 and the other is not.
1947
1948 2004-02-13 Ian Lance Taylor <ian@wasabisystems.com>
1949
1950 PR c++/9851
1951 * parser.c (cp_parser_pseudo_destructor_name): Check for errors on
1952 the type name and look ahead for ::~, and bail out early with a
1953 better error message if the parse is going to fail.
1954
1955 2004-02-12 Mark Mitchell <mark@codesourcery.com>
1956
1957 * call.c (conversion_kind): New type.
1958 (conversion_rank): Likewise.
1959 (conversion): Likewise.
1960 (CONVERSION_RANK): New macro.
1961 (conversion_obstack): New variable.
1962 (obstack_initialized): Likewise.
1963 (z_candidate): Change type of convs and second_conv.
1964 (candidate_warning): New type.
1965 (IDENTITY_RANK): Remove.
1966 (EXACT_RANK): Likewise.
1967 (PROMO_RANK): Likewise.
1968 (STD_RANK): Likewise.
1969 (PBOOL_RANK): Likewise.
1970 (USER_RANK): Likewise.
1971 (ELLIPSIS_RANK): Likewise.
1972 (BAD_RANK): Likewise.
1973 (ICS_RANK): Likewise.
1974 (ICS_STD_RANK): Likewise.
1975 (ICS_USER_FLAG): Likewise.
1976 (ICS_ELLIPSIS_FLAG): Likewise.
1977 (ICS_THIS_FLAG): Likewise.
1978 (ICS_BAD_FLAG): Likewise.
1979 (NEED_TEMPORARY_P): Likewise.
1980 (CHECK_COPY_CONSTRUCTOR_P): Likewise.
1981 (USER_CONV_CAND): Likewise.
1982 (USER_CONV_FN): Likewise.
1983 (conversion_obstack_alloc): New function.
1984 (alloc_conversion): Likewise.
1985 (validate_conversion_obstack): Likewise.
1986 (alloc_conversions): Likewise.
1987 (build_conv): Adjust to deal with new conversion data structures.
1988 (build_identity_conv): New function.
1989 (build_ambiguous_conv): Likewise.
1990 (standard_conversion): Adjust to deal with new conversion data
1991 structures.
1992 (convert_class_to_reference): Likewise.
1993 (direct_reference_binding): Likewise.
1994 (reference_binding): Likewise.
1995 (implicit_conversion): Likewise.
1996 (add_candidate): Likewise.
1997 (add_function_candidate): Likewise.
1998 (add_conv_candidate): Likewise.
1999 (build_builtin_candidate): Likewise.
2000 (print_z_candidate): Likewise.
2001 (merge_conversion_sequences): Likewise.
2002 (build_user_type_conversion_1): Likewise.
2003 (build_user_type_conversion): Likewise.
2004 (build_new_function_call): Likewise.
2005 (build_object_call): Likewise.
2006 (conditional_conversion): Likewise.
2007 (build_conditional_expr): Likewise.
2008 (build_new_op): Likewise.
2009 (build_op_delete_call): Likewise.
2010 (convert_like_real): Likewise.
2011 (build_over_call): Likewise.
2012 (build_new_method_call): Likewise.
2013 (is_subseq): Likewise.
2014 (maybe_handle_implicit_object): Likewise.
2015 (maybe_handle_ref_bind): Likewise.
2016 (compare_ics): Likewise.
2017 (source_type): Likewise.
2018 (add_warning): Likewise.
2019 (joust): Likewise.
2020 (can_convert_arg): Likewise.
2021 (can_convert_arg_bad): Likewise.
2022 (perform_implicit_conversion): Likewise.
2023 (perform_direct_initialization_if_possible): Likewise.
2024 (initialize_reference): Likewise.
2025 * cp-lang.c (cp_tree_size): Do not handle WRAPPER.
2026 * cp-tree.def (WRAPPER): Likewise.
2027 (IDENTITY_CONV): Remove.
2028 (LVALUE_CONV): Likewise.
2029 (QUAL_CONV): Likewise.
2030 (STD_CONV): Likewise.
2031 (PTR_CONV): Likewise.
2032 (PMEM_CONV): Likewise.
2033 (BASE_CONV): Likewise.
2034 (REF_BIND): Likewise.
2035 (USER_CONV): Likewise.
2036 (AMBIG_CONV): Likewise.
2037 (RVALUE_CONV): Likewise.
2038 * cp-tree.h (tree_wrapper): Remove.
2039 (WRAPPER_ZC): Remove.
2040 (lang_tree_node): Remove wrapper.
2041 (LOOKUP_SPECULATIVELY): Remove.
2042 (build_op_delete_call): Adjust prototype.
2043 (validate_conversion_obstack): Declare.
2044 (build_zc_wrapper): Remove.
2045 * cvt.c (convert_to_reference): Remove dead code.
2046 (ocp_convert): Likewise.
2047 * decl.c (redeclaration_error_message): Correct handling of
2048 templates.
2049 (finish_destructor_body): Do not use LOOKUP_SPECULATIVELY.
2050 (cp_tree_node_structure): Remove WRAPPER case.
2051 * decl2.c (finish_file): Call validate_conversion_obstack.
2052 * init.c (build_new_1): Remove use of LOOKUP_SPECULATIVELY.
2053 (build_op_delete_call): Likewise.
2054 (build_x_delete): Likewise.
2055 (build_delete): Adjust call to build_op_delete_call.
2056 * pt.c (tsubst_friend_declaration): Adjust code to determine
2057 whether or not a friend template is a definition.
2058 (tsubst_decl): Clear DECL_INITIAL for new FUNCTION_DECLs.
2059 * tree.c (build_zc_wrapper): Remove.
2060
2061 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2062
2063 * cp-lang.c: Don't define LANG_HOOKS_BUILTIN_TYPE_DECLS.
2064 * cp-tree.h: Don't declare cxx_builtin_type_decls.
2065 * decl.c (builtin_type_decls, cxx_builtin_type_decls): Delete.
2066 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
2067
2068 2004-02-10 Mark Mitchell <mark@codesourcery.com>
2069
2070 * typeck.c (lookup_destructor): Fix typo in error message.
2071
2072 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
2073
2074 * call.c, parser.c, tree.c: Fix comment typos.
2075
2076 2004-02-07 Zack Weinberg <zack@codesourcery.com>
2077
2078 Bug 13856
2079 * optimize.c (maybe_clone_body): Don't update DECL_ESTIMATED_INSNS.
2080 * decl.c (duplicate_decls, start_function): Likewise.
2081
2082 2004-02-07 Zack Weinberg <zack@codesourcery.com>
2083
2084 * name-lookup.c (pushdecl): Issue shadow warnings directly.
2085 * parser.c (free_parser_stacks): Delete.
2086
2087 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2088
2089 * rtti.c: Update copyright.
2090
2091 2004-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2092
2093 PR c++/14033
2094 * decl.c (require_complete_types_for_parms): Do not insert
2095 error_mark_node in the parameter list.
2096
2097 2004-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2098
2099 PR c++/14028
2100 * parser.c (cp_parser_enclosed_template_argument_list): Emit straight
2101 error when terminator can not be found.
2102
2103 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
2104
2105 Make-lang.in (po-generated): Delete.
2106
2107 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
2108
2109 * call.c (type_passed_as): Replace PROMOTE_PROTOTYPES with
2110 targetm.calls.promote_prototypes.
2111
2112 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2113
2114 PR middle-end/13750
2115 Revert:
2116 2004-01-15 Geoffrey Keating <geoffk@apple.com>
2117 PR pch/13361
2118 * cp/lex.c (handle_pragma_interface): Duplicate string from tree.
2119 (handle_pragma_implementation): Likewise.
2120
2121 2004-02-05 Mark Mitchell <mark@codesourcery.com>
2122
2123 PR c++/13714
2124 * typeck.c (lookup_destructor): Tweak error message.
2125
2126 2004-02-05 Jan Hubicka <jh@suse.cz>
2127
2128 * tree.c (cp_cannot_inline_tree_fn): Allow inlining of comdat
2129 functions.
2130
2131 2004-02-05 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2132
2133 PR c++/14008
2134 * parser.c (cp_parser_diagnose_invalid_typename): Removed parsing
2135 code, only emits the diagnostic now. Added lookup of the identifier
2136 and support for qualified ids.
2137 (cp_parser_parse_and_diagnose_invalid_type_name): New function.
2138 Parse an (invalid) type name as id-expression within a declarator.
2139 (cp_parser_simple_declaration): Use it.
2140 (cp_parser_member_declaration): Likewise.
2141 (cp_parser_make_typename_type): New function. Handle errors through
2142 cp_parser_diagnose_invalid_typename.
2143 (cp_parser_elaborated_type_specifier): Use it.
2144
2145 2004-02-04 Mark Mitchell <mark@codesourcery.com>
2146
2147 PR c++/13932
2148 * call.c (convert_like_real): Use "converting" rather than
2149 "argument" as the descriptive keyword to
2150 dubious_conversion_warnings.
2151 * typeck.c (convert_for_assignment): Do not call
2152 dubious_conversion_warnings.
2153
2154 2004-02-04 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2155
2156 PR c++/13086
2157 * init.c (build_delete): Emit a more informative error message in
2158 case of an incomplete type, and on the correct source line.
2159
2160 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
2161
2162 * error.c, search.c: Update copyright.
2163
2164 2004-02-04 Mark Mitchell <mark@codesourcery.com>
2165
2166 PR c++/9941
2167 * rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
2168 linkage for the typeinfo name string.
2169
2170 2004-02-04 Mark Mitchell <mark@codesourcery.com>
2171
2172 PR c++/13969
2173 * cp-tree.h (fold_non_dependent_expr): New function.
2174 * parser.c (cp_parser_fold_non_dependent_expr): Remove.
2175 (cp_parser_template_argument): Use fold_non_dependent_expr.
2176 (cp_parser_direct_declarator): Likewise.
2177 * pt.c (fold_non_dependent_expr): New function.
2178 (convert_nontype_argument): Use it.
2179 (tsubst_qualified_id): Simplify.
2180 (tsubst_copy_and_build): Likewise.
2181
2182 2004-02-04 Mark Mitchell <mark@codesourcery.com>
2183
2184 * decl.c (cxx_push_function_context): Do not set
2185 current_function_is_thunk.
2186 * method.c (use_thunk): Set CALL_FROM_THUNK on the call to the
2187 actual function.
2188
2189 2004-02-04 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2190
2191 PR c++/13997
2192 * pt.c (more_specialized_class): Increase processing_template_decl
2193 while partial ordering.
2194
2195 2004-02-03 Mark Mitchell <mark@codesourcery.com>
2196
2197 PR c++/13925
2198 * decl.c (start_function): Do not call pushdecl for any
2199 instantiation or specialization of a primary template.
2200
2201 2004-02-03 Mark Mitchell <mark@codesourcery.com>
2202
2203 PR c++/13950
2204 * parser.c (cp_parser_class_name): Robustify.
2205
2206 PR c++/13970
2207 * parser.c (cp_parser_cache_group): Do not consume the EOF token.
2208
2209 PR c++/14002
2210 * semantics.c (finish_id_expression): Do not return an
2211 IDENTIFIER_NODE when lookup finds a PARM_DECL.
2212
2213 2004-02-03 Mark Mitchell <mark@codesourcery.com>
2214
2215 PR c++/13978
2216 * pt.c (build_non_dependent_expr): Do not build
2217 NON_DEPENDENT_EXPRs for FUNCTION_DECLs or TEMPLATE_DECLs.
2218
2219 PR c++/13968
2220 * semantics.c (finish_id_expression): Do not return an
2221 IDENTIFIER_NODE when lookup finds a VAR_DECL.
2222
2223 PR c++/13975
2224 * parser.c (cp_parser_simple_declaration): When skipping to the
2225 end of the statement swallow the terminating semicolon.
2226
2227 2004-02-02 Mark Mitchell <mark@codesourcery.com>
2228
2229 PR c++/13113
2230 * init.c (build_offset_ref): Improve error recovery for invalid
2231 uses of non-static member functions.
2232
2233 PR c++/13854
2234 * cp-tree.h (cp_build_type_attribute_variant): New function.
2235 * class.c (build_clone): Use cp_build_type_attribute_variant.
2236 * decl.c (duplicate_decls): Likewise.
2237 * pt.c (copy_default_args_to_explicit_spec): Likewise.
2238 (tsubst_function_type): Likewise.
2239 * tree.c (build_exception_variant): Check attributes before
2240 concluding that two types are the same.
2241 (cp_build_type-attribute_variant): New method.
2242 * typeck.c (merge_types): Use cp_build_type_attribute_variant.
2243
2244 PR c++/13907
2245 * call.c (convert_class_to_reference): Keep better track of
2246 pedantically invalid user-defined conversions.
2247
2248 2004-02-01 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2249
2250 PR c++/13957
2251 * pt.c (tsubst_qualified_id): Improved error message when a type
2252 is expected but not found.
2253
2254 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2255
2256 * class.c: Fix comment typos.
2257 * decl.c: Likewise.
2258 * error.c: Likewise.
2259 * parser.c: Likewise.
2260 * pt.c: Likewise.
2261 * search.c: Likewise.
2262 * typeck.c: Likewise.
2263
2264 2004-01-30 Richard Henderson <rth@redhat.com>
2265
2266 PR c++/13693
2267 * method.c (use_thunk): Don't force_target_expr for void thunks.
2268 * tree.c (build_target_expr_with_type): Assert non-void type.
2269 (force_target_expr): Likewise.
2270
2271 2004-01-30 Michael Matz <matz@suse.de>
2272
2273 * parser.c (cp_parser_labeled_statement): Accept case ranges.
2274
2275 2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2276
2277 DR206
2278 PR c++/13813
2279 * decl.c (grokdeclarator): Check immediatly type completeness for
2280 non-dependent types.
2281
2282 2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2283
2284 PR c++/13683
2285 * call.c (convert_arg_to_ellipsis): Don't emit a warning if within
2286 a sizeof expression.block
2287
2288 2004-01-29 Mark Mitchell <mark@codesourcery.com>
2289
2290 PR c++/13883
2291 * mangle.c (write_encoding): Correct encoding of member template
2292 constructors.
2293
2294 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2295
2296 * parser.c (cp_parser_template_id): Parse tentatively `[:' after a
2297 template name as it was `<::' (digraph typo).
2298 (cp_parser_nth_token_starts_template_argument_list_p): New function.
2299 (cp_parser_id_expression): Use it.
2300 (cp_parser_nested_name_specifier_opt): Likewise.
2301 (cp_parser_template_name): Likewise.
2302 (cp_parser_class_name): Likewise.
2303 (cp_lexer_get_preprocessor_token): Use c_lex_with_flags.
2304
2305 2004-01-28 Mark Mitchell <mark@codesourcery.com>
2306
2307 PR c++/13791
2308 * typeck.c (merge_types): Do not merge attributes into
2309 TYPENAME_TYPEs.
2310
2311 PR c++/13736
2312 * parser.c (cp_parser_direct_declarator): Do not prevent
2313 backtracking inside a parenthesized declarator.
2314 (cp_parser_parameter_declaration): Fix typo in comment.
2315
2316 2004-01-28 Jan Hubicka <jh@suse.cz>
2317
2318 * semantics.c (expand_body) Do emit_associated_thunks before
2319 expansion.
2320
2321 2004-01-27 Devang Patel <dpatel@apple.com>
2322
2323 * name-lookup.c: Include "debug.h"
2324 (do_namespace_alias): Invoke debug_hooks to emit debug info
2325 for namespace alias.
2326 (do_local_using_decl): Invoke debug_hooks to emit debug info
2327 for using decl.
2328 (do_class_using_decl): Same.
2329 (do_toplevel_using_decl): Same.
2330 (do_using_directive): Same.
2331 (cp_emit_debug_info_for_using): New function.
2332 * Make-lang.in (cp/parser.o): Depend on debug.h
2333 (cp/name-lookup.o): Same.
2334
2335 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2336
2337 * cp-tree.h (language_function, lang_type_header): Use
2338 BOOL_BITFIELD.
2339 * name-lookup.h (cp_binding_level): Likewise.
2340
2341 2004-01-26 Mark Mitchell <mark@codesourcery.com>
2342
2343 PR c++/13663
2344 * semantics.c (finish_for_expr): Check for unresolved overloaded
2345 functions.
2346
2347 * class.c (add_method): Just check processing_template_decl to
2348 determine whether or not we are within a template.
2349 * decl2.c (maybe_retrofit_in_chrg): Likewise.
2350 * init.c (decl_constant_value): Check the type of the declaration,
2351 not TREE_READONLY.
2352 * name-lookup.c (maybe_push_to_top_level): Rename to ...
2353 (push_to_top_level): ... this.
2354 * name-lookup.h (maybe_push_to_top_level): Do not declare it.
2355 * pt.c (push_template_decl_real): Reorder condition for speed.
2356 (convert_template_argument): Use dependency-checking functions in
2357 place of uses_template_parms.
2358 (lookup_template_class): Avoid calling uses_template_parms more
2359 than once.
2360 (uses_template_parms): Reimplement, using dependency-checking
2361 functions.
2362 (instantiate_class_template): Use push_to_top_level, not
2363 maybe_push_to_top_level.
2364 (type_unification_real): Simplify.
2365 (type_dependent_expression_p): Handle OFFSET_REFs and
2366 TEMPLATE_DECLs.
2367 (any_dependent_template_arguments_p): Handle multiple levels of
2368 template argument.
2369 * semantics.c (expand_or_defer_fn): Do not check
2370 uses_template_parms for template instantiations.
2371 * typeck.c (comptypes): Avoid calling cp_type_quals.
2372
2373 2004-01-25 Mark Mitchell <mark@codesourcery.com>
2374
2375 PR c++/13833
2376 * call.c (build_over_call): Do not convert arguments when
2377 processing a template.
2378 * pt.c (build_non_dependent_expr): Do not build a
2379 NON_DEPENDENT_EXPR for arithmetic constants.
2380
2381 2004-01-25 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2382
2383 PR c++/13810
2384 * parser.c (cp_parser_type_parameter): When cp_parser_id_expression
2385 returns a TYPE_DECL. no further lookup is required.
2386 * semantics.c (check_template_template_default_arg): A TYPE_DECL
2387 is invalid. Rework to give better diagnostics.
2388
2389 2004-01-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2390
2391 PR c++/13797
2392 * pt.c (instantiate_class_template): Add an error_mark_node
2393 check.
2394 (tsubst_decl) <TEMPLATE_DECL case>: Likewise.
2395
2396 2004-01-23 Andrew Pinski <pinskia@physics.uc.edu>
2397
2398 PR c++/13701
2399 * decl.c (finish_function): Move the call to
2400 finish_fname_decls below the call to
2401 finish_eh_spec_block.
2402
2403 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
2404
2405 * optimize.c, typeck2.c: Update copyright.
2406
2407 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
2408
2409 * Make-lang.in, call.c, class.c, decl2.c, except.c, expr.c,
2410 init.c, mangle.c, typeck.c: Update copyright.
2411
2412 2004-01-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2413
2414 * parser.c (cp_parser_class_specifier): Prevent garbage collection.
2415
2416 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
2417
2418 * Make-lang.in: Replace $(docdir) with doc.
2419 (c++.info, c++.srcinfo): Dummy entry.
2420 (c++.man, c++.srcman): New rules.
2421 (c++.install-man): Revamp rule.
2422
2423 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
2424
2425 * Make-lang.in (CXX_INSTALL_NAME, GXX_INSTALL_NAME,
2426 CXX_TARGET_INSTALL_NAME, GXX_TARGET_INSTALL_NAME): Define via a
2427 immediate $(shell) instead of deferred backquote.
2428
2429 2004-01-19 Mark Mitchell <mark@codesourcery.com>
2430
2431 PR c++/13651
2432 * parser.c (cp_parser_postfix_expression): When encountering
2433 incomplete type on left-hand side of "->" or ".", treat the entire
2434 expression as erroneous.
2435
2436 PR c++/13592
2437 * call.c (build_field_call): Remove.
2438 (n_build_method_call): Likewise.
2439 (build_method_call): Likewise.
2440 (build_new_method_call): Do not call build_field_call.
2441 * class.c (n_build_method_call): Remove.
2442 (print_class_statistics): Do not print it.
2443 * cp-tree.h (build_method_call): Remove declaration.
2444 (finish_object_call_expr): Likewise.
2445 (build_new_1): Do not use build_method_call.
2446 * parser.c (cp_parser_postfix_expression): Use finish_call_expr
2447 when the function appearing on the right-hand-side of "." or "->"
2448 is not actually a function.
2449 * pt.c (tsubst_copy_and_build): Likewise.
2450 * semantics.c (finish_object_call_expr): Remove.
2451
2452 2004-01-18 Mark Mitchell <mark@codesourcery.com>
2453
2454 PR c++/13710
2455 * pt.c (tsubst): Use finish_typeof.
2456
2457 2004-01-18 Jason Merrill <jason@redhat.com>
2458
2459 PR c++/11725
2460 * except.c (build_throw): In a template, set
2461 current_function_returns_abnormally.
2462
2463 2004-01-17 Fred Fish <fnf@intrinsity.com>
2464
2465 PR c++/11895
2466 * decl.c (reshape_init): Handle VECTOR_TYPE like ARRAY_TYPE,
2467 except don't call array_type_nelts() with a VECTOR_TYPE.
2468
2469 2004-01-16 Jan Hubicka <jh@suse.cz>
2470
2471 * mangle.c (write_mangled_name): Remove inline modifier.
2472
2473 2004-01-16 Mark Mitchell <mark@codesourcery.com>
2474
2475 PR c++/13574
2476 * decl.c (compute_array_index_type): Fix grammar in comment.
2477 * init.c (build_zero_init): Handle zero-sized arrays correctly.
2478
2479 PR c++/13178
2480 * call.c (name_as_c_string): Print conversion operator names
2481 correctly.
2482
2483 PR c++/13478
2484 * call.c (initialize_reference): Pass -1 for inner parameter to
2485 convert_like_real.
2486
2487 2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2488
2489 PR c++/13407
2490 * parser.c (cp_parser_base_specifier): Check for an invalid
2491 keyword `typename' and emit an user-friendly error message.
2492
2493 2004-01-15 Geoffrey Keating <geoffk@apple.com>
2494
2495 PR pch/13361
2496 * cp/lex.c (handle_pragma_interface): Duplicate string from tree.
2497 (handle_pragma_implementation): Likewise.
2498
2499 2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2500
2501 PR c++/9259
2502 * typeck.c (build_class_member_access_expr): Allow to access members
2503 of the currently open class.
2504 (finish_class_member_access_expr): Likewise.
2505
2506 2004-01-15 Alexandre Oliva <aoliva@redhat.com>
2507
2508 PR c++/13659
2509 * name-lookup.c (validate_nonmember_using_decl): Take scope and
2510 name by value, instead of computing them.
2511 (do_local_using_decl, do_toplevel_using_decl): Add scope and name
2512 arguments. Pass them to validate_nonmember_using_decl.
2513 * name-lookup.h (do_local_using_decl): Adjust.
2514 (do_toplevel_using_decl): Likewise.
2515 * parser.c (cp_parser_using_declaration): Likewise.
2516 * pt.c (tsubst_expr): Likewise.
2517
2518 2004-01-15 Alexandre Oliva <aoliva@redhat.com>
2519
2520 PR c++/13594
2521 PR c++/13658
2522 * name-lookup.c (qualified_lookup_using_namespace): Search
2523 strongly-associated namespaces first, and only then try other
2524 namespaces.
2525
2526 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
2527
2528 * Make-lang.in (c++.srcextra): Dummy entry.
2529
2530 2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2531
2532 PR c++/8856
2533 * parser.c (cp_parser_template_name): Don't try to parse a
2534 conversion-function-id, as it cannot be a template-name.
2535 (cp_parser_simple_type_specifier): Check for invalid template-ids
2536 even after a built-in type.
2537
2538 2004-01-14 Jan Hubicka <jh@suse.cz>
2539
2540 PR c++/12850
2541 * pt.c (instantiate_decl): Do not increase function_depth.
2542
2543 2004-01-14 Danny Smith <dannysmith@users,sourceforge.net>
2544
2545 PR c++/9021
2546 PR c++/11005
2547 * parser.c (cp_parser_elaborated_type_specifier): Warn about
2548 attributes and discard.
2549 * decl.c (xref_tag): Don't overwite existing attributes with
2550 NULL_TREE.
2551
2552 2004-01-14 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2553
2554 PR c++/12335
2555 * parser.c (cp_parser_lookup_name): Return error_mark_node if there
2556 is no destructor while looking up a BIT_NOT_EXPR.
2557
2558 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
2559
2560 * cxxfilt.c: Remove unused file.
2561
2562 2004-01-14 Jan Hubicka <jh@suse.cz>
2563
2564 Partial fix to PR c++/12850
2565 * decl2.c (mark_used): Do not proactively instantiate templates
2566 when compiling in unit-at-a-time or not optimizing.
2567 * optimize.c (maybe_clone_body): Do not increase function depth.
2568
2569 2004-01-13 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2570
2571 PR c++/13474
2572 * pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking.
2573
2574 2004-01-12 Steven Bosscher <stevenb@suse.de>
2575
2576 PR c++/13558
2577 * parser.c (cp_parser_member_declaration): Any non-type is also
2578 not a class or a function.
2579
2580 2004-01-12 Jason Merrill <jason@redhat.com>
2581
2582 PR c++/12815
2583 * class.c (build_base_path): Do not mark vtable references as
2584 TREE_CONSTANT.
2585 (build_vtbl_ref_1): Likewise.
2586
2587 2004-01-12 Richard Henderson <rth@redhat.com>
2588
2589 PR opt/10776
2590 * typeck2.c (split_nonconstant_init_1, split_nonconstant_init): New.
2591 (store_init_value): Use it.
2592 * decl.c (check_initializer): Expect full initialization code
2593 from store_init_value.
2594 * init.c (expand_aggr_init_1): Likewise.
2595 * decl2.c (maybe_emit_vtables): Abort if runtime init needed.
2596
2597 2004-01-12 Mark Mitchell <mark@codesourcery.com>
2598
2599 * class.c (layout_class_type): For non-POD class types, also copy
2600 the DECL_SIZE and DECL_MODE of fields to the base class type.
2601
2602 2004-01-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2603
2604 PR c++/13289
2605 * pt.c (instantiate_decl): Set DECL_TEMPLATE_INSTANTIATED before
2606 calling regenerate_decl_from_template.
2607
2608 2004-01-12 Scott Brumbaugh <scottb.lists@verizon.net>
2609
2610 PR c++/4100
2611 * parser.c (cp_parser_decl_specifier_seq): Add check for a friend
2612 decl-specifier occurring along with a class definition.
2613
2614 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
2615
2616 * parser.c (cp_parser_decl_specifier_seq): Add parenthetical
2617 clauses to comments describing declares_class_or_enum.
2618 (cp_parser_type_specifier): Set *declares_class_or_enum to 0, not
2619 false.
2620
2621 2004-01-12 Jan Hubicka <jh@suse.cz>
2622
2623 * pt.c (for_each_template_parm): Do not check for duplicates.
2624 (for_each_template_parm): Use walk_tree duplicate checking code.
2625
2626 2004-01-11 Ian Lance Taylor <ian@wasabisystems.com>
2627
2628 PR c++/3478
2629 * parser.c (cp_parser_decl_specifier_seq): If the first decl_spec
2630 is error_mark_node, don't add any more decl_specs.
2631 (cp_parser_init_declarator): After committing to a declaration, if
2632 the decl_specifiers start with error_mark_node, issue an error and
2633 change the type to "int".
2634
2635 2004-01-09 Nathanael Nerode <neroden@gcc.gnu.org>
2636
2637 PR bootstrap/7817
2638 * Make-lang.in: Copy gcc.1 to g++.1 rather than using .so.
2639
2640 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2641
2642 DR 337
2643 PR c++/9256
2644 * pt.c (tsubst): Substitution must fail if we are attempting to
2645 create an array with element type that is an abstract class type.
2646 * decl.c (cp_finish_decl): Strip pointers and array types recursively
2647 before calling abstract_virtuals_error.
2648
2649 2004-01-09 Alexandre Oliva <aoliva@redhat.com>
2650
2651 * name-lookup.c (qualified_lookup_using_namespace): Consider
2652 strong using directives even if we've already found a binding.
2653
2654 2004-01-09 Mark Mitchell <mark@codesourcery.com>
2655
2656 * cp-tree.h (cxx_expand_expr): Change prototype.
2657 * expr.c (cxx_expand_expr): Add alt_rtl parameter.
2658
2659 2004-01-08 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2660
2661 PR c++/12573
2662 * pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
2663 looking into them recursively. They can be there because of the
2664 new __offsetof__ extension.
2665
2666 2004-01-07 Zack Weinberg <zack@codesourcery.com>
2667
2668 * parser.c (cp_parser_save_member_function_body): Mark the
2669 definition static.
2670
2671 2004-01-05 Mark Mitchell <mark@codesourcery.com>
2672
2673 PR c++/13057
2674 * class.c (build_clone): Copy type attributes from the original
2675 function to the clone.
2676
2677 PR c++/12815
2678 * class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
2679 references as constant.
2680
2681 PR c++/12132
2682 * parser.c (cp_parser_explicit_instantiation): Improve error
2683 recovery.
2684 (cp_parser_require): Improve indication of the error location.
2685
2686 PR c++/13451
2687 * parser.c (cp_parser_class_head): Reorder logic to check for
2688 invalid qualification.
2689
2690 2004-01-04 Mark Mitchell <mark@codesourcery.com>
2691
2692 PR c++/13157
2693 * name-lookup.c (lookup_using_namespace): Remove spacesp
2694 parameter.
2695 (unqualified_namespace_lookup): Likewise.
2696 (lookup_qualified_name): Adjust accordingly.
2697 (lookup_name_real): Likewise.
2698 (lookup_arg_dependent): Do not eliminate the namespace of the
2699 functions found by unqualified name lookup unless that is the
2700 current namespace.
2701
2702 2004-01-04 Andrew Pinski <pinskia@physics.uc.edu>
2703
2704 * semantics.c (push_deferring_access_checks): Fix format.
2705 (resume_deferring_access_checks): Likewise.
2706 (stop_deferring_access_checks): Likewise.
2707 (pop_deferring_access_checks): Likewise.
2708 (get_deferred_access_checks): Likewise.
2709 (pop_to_parent_deferring_access_checks): Likewise.
2710 (perform_deferred_access_checks): Likewise.
2711 (perform_or_defer_access_check): Likewise.
2712
2713 2004-01-04 Richard Henderson <rth@redhat.com>
2714
2715 * call.c (build_over_call): Don't create a save_expr of an
2716 aggregate, but rather its address.
2717
2718 2004-01-04 Mark Mitchell <mark@codesourcery.com>
2719
2720 PR c++/13529
2721 * parser.c (cp_parser_postfix_expression): Allow "." to appear in
2722 an offsetof expression.
2723
2724 * parser.c (cp_parser_parameter_declaration): Fix comment.
2725
2726 PR c++/12226
2727 * call.c (CHECK_COPY_CONSTRUCTOR_P): New macro.
2728 (reference_binding): Set it when appropriate.
2729 (build_temp): New function, split out from ...
2730 (convert_like_real): ... here. Honor CHECK_COPY_CONSTRUCTOR_P.
2731 (initialize_reference): Likewise.
2732
2733 PR c++/13536
2734 * parser.c (cp_parser): Add in_type_id_in_expr_p.
2735 (cp_parser_new): Initialize it.
2736 (cp_parser_postfix_expression): Set it.
2737 (cp_parser_sizeof_operand): Likewise.
2738 (cp_parser_parameteR_declaration): Do not commit early to tenative
2739 parsers when in_type_id_in_expr_p is set.
2740
2741 2004-01-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2742
2743 PR c++/13094
2744 * parser.c (cp_parser_template_argument): Don't call
2745 make_unbound_class_template directly.
2746 (cp_parser_lookup_name): Don't extract TEMPLATE_DECL from
2747 UNBOUND_CLASS_TEMPLATE tree node.
2748
2749 2004-01-02 Richard Sandiford <rsandifo@redhat.com>
2750
2751 PR target/12729
2752 * method.c (use_thunk): Pass the CALL_EXPR through force_target_expr.
2753
2754 2004-01-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2755
2756 PR c++/13520
2757 * cp-tree.h (DECL_UNBOUND_CLASS_TEMPLATE_P): New macro.
2758 (DECL_FUNCTION_TEMPLATE_P): Use it.
2759 (DECL_CLASS_TEMPLATE_P): Likewise.
2760 * parser.c (cp_parser_lookup_name): Add is_template parameter.
2761 (cp_parser_type_parameter): Adjust call to cp_parser_lookup_name.
2762 (cp_parser_template_name): Likewise.
2763 (cp_parser_elaborated_type_specifier): Likewise.
2764 (cp_parser_namespace_name): Likewise.
2765 (cp_parser_class_name): Likewise.
2766 (cp_parser_lookup_name_simple): Likewise.
2767
2768 See ChangeLog.3 for earlier changes.
This page took 0.144045 seconds and 6 git commands to generate.