parser.c (cp_parser_declaration): Set token2.type to CPP_EOF, not RID_MAX.
[gcc.git] / gcc / cp / ChangeLog
1 2005-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * parser.c (cp_parser_declaration): Set token2.type to CPP_EOF,
4 not RID_MAX.
5
6 2005-11-30 Jason Merrill <jason@redhat.com>
7
8 PR c++/21123
9 * cp-gimplify.c (cp_genericize_r): Don't dereference invisible reference
10 parms in a thunk.
11
12 2005-11-30 Ben Elliston <bje@au.ibm.com>
13
14 * typeck.c (build_x_unary_op): Correct spelling in error message.
15
16 2005-11-28 Nathan Sidwell <nathan@codesourcery.com>
17
18 PR c++/21166
19 * class.c (check_field_decls): Only set DECL_PACKED on a field
20 when its natural alignment is > BITS_PER_UNIT.
21
22 2005-11-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
23
24 PR c++/24979
25 * cp-tree.h (DECL_MAIN_P): Remove duplicate definition.
26
27 2005-11-26 Richard Henderson <rth@redhat.com>
28
29 * lex.c: Update for pragma_lex rename.
30 * parser.c: Likewise.
31
32 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
33
34 PR c++/9278
35 * decl.c (grokparms): Do not allow typedef-names in a '(void)'
36 parmlist.
37
38 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
39
40 * typeck2.c (process_init_constructor_union): Remove check for
41 unnamed union members.
42
43 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
44
45 * name-lookup.c (lookup_name_real): Merge two if's.
46
47 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
48
49 * pt.c (instantiate_class_template): Clean-up.
50
51 2005-11-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
52
53 * pt.c (template_class_depth_real): Remove. Move functionality to ...
54 (template_class_depth): ... here, replacing count_specializations
55 with 0. Adjust comment.
56
57 2005-11-24 Richard Guenther <rguenther@suse.de>
58 Dirk Mueller <dmueller@suse.de>
59
60 PR c++/14024
61 * typeck.c (build_reinterpret_cast_1): Use
62 strict_aliasing_warning.
63
64 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
65
66 PR c++/24235
67 * pt.c (check_instantiated_args): Reword diagnostic message about
68 template argument involving local types.
69
70 2005-11-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
71
72 PR c++/21667
73 * typeck.c (build_array_ref): Avoid code duplicate. Use common
74 C/C++ diagnostic function warn_array_subscript_with_type_char.
75
76 2005-11-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
77
78 PR c++/22238
79 * error.c (resolve_virtual_fun_from_obj_type_ref): New.
80 (dump_expr): Use it in <case CALL_EXPR>.
81
82 2005-11-21 Richard Henderson <rth@redhat.com>
83
84 * cp-objcp-common.h, name-lookup.c, name-lookup.h: Revert 11-18 patch.
85
86 * name-lookup.c (lookup_name): Remove prefer_type argument.
87 (lookup_name_prefer_type): New.
88 * decl.c (lookup_and_check_tag): Use them.
89 * pt.c (tsubst_friend_class): Likewise.
90 (lookup_template_class): Likewise.
91 (tsubst_copy_and_build): Likewise.
92 * name-lookup.h (lookup_name_prefer_type): New.
93 (lookup_name): Remove declaration.
94
95 2005-11-18 Mark Mitchell <mark@codesourcery.com>
96
97 PR c++/8355
98 * decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
99 set_decl_namespace.
100 * name-lookup.c (set_decl_namespace):
101
102 2005-11-18 Mike Stump <mrs@apple.com>
103
104 * cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
105 * name-lookup.c (lookup_name_two): Remove.
106 (lookup_name_one): Add.
107 * name-lookup.h (lookup_name_two): Remove.
108 (lookup_name_one): Add.
109
110 2005-11-15 Jason Merrill <jason@redhat.com>
111
112 PR c++/24580
113 * method.c (locate_copy): Also use skip_artificial_parms here.
114 (synthesize_exception_spec): Use CLASS_TYPE_P rather than checking
115 for RECORD_TYPE.
116 (locate_ctor): Abort if we fail to find a default constructor.
117
118 2005-11-15 Mike Stump <mrs@apple.com>
119
120 * name-lookup.c (lookup_name_two): Add.
121 * name-lookup.h: Likewise.
122
123 2005-11-15 Mark Mitchell <mark@codesourcery.com>
124
125 PR c++/24667
126 * typeck.c (check_for_casting_away_constness): Use the diag_fn.
127 (build_const_cast_1): Call it, for C-style casts.
128
129 2005-11-14 Mark Mitchell <mark@codesourcery.com>
130
131 PR c++/24687
132 * pt.c (check_explicit_specialization): Don't check for C linkage.
133 (push_template_decl_real): Likewise.
134 * parser.c (cp_parser_explicit_specialization): Check here.
135 (cp_parser_template_declaration_after_export): And here.
136
137 * parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
138 field.
139
140 2005-11-14 Jason Merrill <jason@redhat.com>
141
142 PR c++/24580
143 * method.c (locate_ctor): Skip all artificial parms, not just
144 'this'.
145
146 2005-11-14 Mark Mitchell <mark@codesourcery.com>
147
148 * parser.c (eof_token): Add initializer for ambiguous_p.
149
150 2005-11-13 Mark Mitchell <mark@codesourcery.com>
151
152 PR c++/24817
153 * decl.c (check_redeclaration_exception_specification): New
154 function.
155 (duplicate_decls): Use it.
156 * error.c (fndecl_to_string): Print the template parameter list.
157
158 PR c++/20293
159 * cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes
160 for namespaces.
161 (pp_cxx_original_namespace_definition): Likewise.
162 * name-lookup.c (ambiguous_decl): Don't issue error messages;
163 instead return lists of ambiguous candidates.
164 (select_decl): Handle ambiguous namespace lookups.
165 * parser.c (cp_token): Add ambiguous_p.
166 (cp_lexer_get_preprocessor_token): Set it.
167 (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
168 when a qualified name uses an invalid scope.
169 (cp_parser_primary_expression): Print ambiguous candidates.
170 (cp_parser_type_parameter): Adjust comment to reflect new
171 parameter name for cp_parser_lookup_name.
172 (cp_parser_template_argument): Likewise.
173 (cp_parser_elaborated_type_specifier): Likewise.
174 (cp_parser_namespace_name): Likewise.
175 (cp_parser_class_name): Print ambiguous candidates.
176 (cp_parser_lookup_name): Rename ambiguous_p parameter to
177 ambiguous_decls. Use it to return a list of ambiguous candiates
178 when a lookup is ambiguous.
179 (cp_parser_lookup_name_simple): Adjust comment to reflect new
180 parameter name for cp_parser_lookup_name.
181
182 2005-11-12 Jakub Jelinek <jakub@redhat.com>
183
184 PR c++/24780
185 * typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING
186 and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants
187 of array type.
188
189 PR c++/24761
190 * pt.c (tsubst_copy_asm_operands): New function.
191 (tsubst_expr) <case ASM_EXPR>: Use it.
192
193 2005-11-08 Jakub Jelinek <jakub@redhat.com>
194
195 PR c++/19450
196 * decl.c (redeclaration_error_message): Issue diagnostics about
197 olddecl and newdecl disagreement on __thread property.
198 (grokdeclarator): Set DECL_TLS_MODEL on class static variables.
199
200 2005-11-08 Jason Merrill <jason@redhat.com>
201
202 PR c++/21123
203 * method.c (use_thunk): Use build_cplus_new instead of
204 force_target_expr.
205
206 2005-11-06 Jason Merrill <jason@redhat.com>
207 James A. Morrison <phython@gcc.gnu.org>
208
209 PR c++/17256
210 * decl2.c (cp_finish_file): Fix conditions for undefined warning.
211 Set TREE_NO_WARNING instead of TREE_PUBLIC.
212 * pt.c (instantiate_pending_templates): Set DECL_INITIAL to avoid
213 a warning on a function we didn't instantiate because of excessive
214 recursion.
215
216 2005-11-06 Mark Mitchell <mark@codesourcery.com>
217
218 * class.c (record_subobject_offsets): Don't record offsets past
219 biggest empty class for non-empty base classes.
220 (layout_class_type): Use TYPE_SIZE_UNIT, not TYPE_SIZE, when
221 keeping track of the size of emptyclasses.
222
223 PR c++/21308
224 * class.c (sizeof_biggest_empty_class): New variable.
225 (record_subobject_offsets): Don't record offsets past biggest
226 empty class for data members. Replace vbases_p parameter with
227 is_data_member parameter.
228 (build_base_field): Adjust call.
229 (layout_class_type): Likewise. Maintain
230 sizeof_biggest_empty_class.
231
232 2005-11-05 Kazu Hirata <kazu@codesourcery.com>
233
234 * decl2.c, init.c, typeck.c: Fix comment typos.
235
236 2005-11-04 Richard Guenther <rguenther@suse.de>
237
238 PR c++/22487
239 * init.c (build_vec_init): Build comparison of matching
240 types.
241
242 2005-11-03 Josh Conner <jconner@apple.com>
243
244 PR c++/19989
245 pt.c (tsubst): Accept zero-length array if tf_error is set
246 in complain flags. Change error message for negative-
247 length array.
248
249 2005-11-04 Joseph S. Myers <joseph@codesourcery.com>
250
251 * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list*
252 parameter.
253
254 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
255
256 PR c++/17964
257 * error.c (cp_cpp_error): New function.
258 * cp-tree.h (cp_cpp_error): Declare.
259 * parser.c (cp_lexer_new_main): Set CPP option client_diagnostic
260 and error callback after lexing.
261
262 2005-11-03 Mark Mitchell <mark@codesourcery.com>
263
264 PR c++/21627
265 * pt.c (register_specialization): Update inline flags on clones.y
266
267 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
268
269 PR c++/24582
270 * decl.c (declare_local_label): Return 0 for variables
271 with error_mark_node as their types.
272
273 2005-11-02 Mark Mitchell <mark@codesourcery.com>
274
275 PR c++/22434
276 * call.c (build_conditional_expr): Do bad conversions, if there's
277 no other choice.
278
279 PR c++/24560
280 * parser.c (cp_parser_postfix_dot_deref_expression): Improve error
281 message for use of overloaded functions on LHS of "." operator.
282
283 PR c++/19253
284 * parser.c (cp_parser_postfix_expression): Use
285 cp_parser_elaborated_type_specifier to handle typename-types in
286 functional casts.
287 (cp_parser_enclosed_argument_list): Skip ahead to the end of the
288 template argument list if the closing ">" is not found.
289
290 PR c++/24569
291 * pt.c (instantiate_decl): Use cp_finish_decl, not
292 finish_static_data_member_decl.
293
294 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
295
296 * decl.c (grokfndecl): Remove the setting
297 of the return type of the function type
298 of main after erroring about must returning
299 int.
300
301 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
302
303 PR C++/23229
304 * decl.c (grokfndecl): Create a new function type
305 after erroring out about main not returning int.
306
307 2005-10-28 Josh Conner <jconner@apple.com>
308
309 PR c++/22153
310 * parser.c (cp_parser_member_declaration): Detect and handle
311 a template specialization.
312
313 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
314
315 PR C++/23426
316 * decl.c (start_decl): Check that the decl is an
317 error_mark_node before getting the type.
318 Remove the check for the decl's type being an
319 error_mark_node.
320
321 2005-10-21 Mark Mitchell <mark@codesourcery.com>
322
323 PR c++/24260
324 * parser.c (cp_parser_init_declarator): Pass attributes to
325 grokfield.
326
327 2005-10-20 Mark Mitchell <mark@codesourcery.com>
328
329 PR c++/22618
330 * search.c (accessible_p): Check access in the outermost set of
331 template parameters.
332
333 2005-10-20 Richard Guenther <rguenther@suse.de>
334
335 * decl.c (grokdeclarator): Fix ambiguous pedwarn message.
336
337 2005-10-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
338
339 PR c++/22293
340 * decl.c (grokdeclarator): Reject unqualified destructors in
341 friend declarations.
342
343 2005-10-18 Mark Mitchell <mark@codesourcery.com>
344
345 PR c++/23293
346 * pt.c (convert_template_argument): Use canonical type variants in
347 template specializations.
348
349 2005-10-18 Nathan Sidwell <nathan@codesourcery.com>
350
351 PR c++/21383
352 * name-lookup.c (arg_assoc): Template args can be null in a
353 template-id-expr.
354
355 PR c++/22604
356 * class.c (update_vtable_entry_for_fn): Don't process invalid
357 covariant overriders.
358
359 PR c++/23118
360 * cp-tree.h (add_method): Add return value.
361 * class.c (add_method): Return success indicator.
362 * semantics.c (finish_member_declaration): Don't add an invalid
363 method to the method list.
364
365 2005-10-17 Mark Mitchell <mark@codesourcery.com>
366
367 PR c++/21908
368 * call.c (build_new_method_call): Do not show VTT parameters to
369 the user.
370
371 2005-10-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
372
373 PR c++/23440
374 * parser.c (cp_parser_statement): If the parser reached CPP_EOF,
375 only complain about missing statement.
376
377 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
378
379 PR c++/24386
380 * cp-tree.h (BASELINK_QUALIFIED_P): New.
381 * pt.c (tsubst_copy_and_build): <CALL_EXPR case>: Use it.
382 * typeck.c (finish_class_member_access_expr): Set it.
383
384 PR c++/21353
385 * decl.c (check_default_argument): Don't check
386 processing_template_decl or uses_template_parms here.
387 (grokparms): Only call check_default_argument when not processing
388 a template decl.
389 * parser.c (cp_parser_late_parsing_default_arg): Call
390 check_default_argument when not processing a template decl.
391
392 2005-10-16 Mark Mitchell <mark@codesourcery.com>
393
394 PR c++/24389
395 * decl2.c (mark_used): Use uses_template_parms instead of
396 dependent_type_p.
397 * init.c (constant_value_1): Handle uninstantiated templates
398 specially.
399 * pt.c (instantiate_decl): Add sanity check.
400
401 2005-10-16 Mark Mitchell <mark@codesourcery.com>
402
403 PR c++/22173
404 * typeck.c (check_template_keyword): Fix thinko.
405
406 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
407
408 PR c++/23959
409 * decl.c (pop_switch): Only call c_do_switch_warnings
410 when not processing templates.
411
412 2005-10-16 Mark Mitchell <mark@codesourcery.com>
413
414 PR c++/22173
415 * cp-tree.h (QUALIFIED_NAME_IS_TEMPLATE): New macro.
416 (check_template_keyword): New function.
417 (finish_id_expression): Change prototoype.
418 (finish_qualified_id_expr): Change prototype.
419 (build_qualified_name): New function.
420 (finish_class_member_access_expr): Change prototype.
421 * init.c (build_offset_ref): Use build_qualified_name.
422 * mangle.c (write_expression): Likewise.
423 * parser.c (cp_parser_primary_expression): Remove qualifying_class
424 parameter. Add address_p and template_arg_p. Use
425 build_qualified_name.
426 (cp_parser_id_expression): Default *template_p to
427 template_keyword_p. Check for invalid uses of the template
428 keyword.
429 (cp_parser_postfix_expression): Eliminate special handling for
430 qualified names. Adjust call to cp_parser_primary_expression.
431 (cp_parser_postfix_dot_deref_expression): Adjust call to
432 cp_parser_id_expression and finish_class_member_access_expr.
433 (cp_parser_template_argument_list): Add comment.
434 (cp_parser_template_argument): Adjust use of
435 cp_parser_primary_expression. Remove call to
436 finish_qualified_id_expr.
437 (cp_parser_lookup_name): Use build_qualified_name.
438 * pt.c (tsubst): Use build_qualified_name.
439 (tsubst_qualified_id): Likewise. Adjust call to
440 finish_qualified_id_expr.
441 (tsubst_copy): Use build_qualified_name.
442 (tsubst_copy_and_build): Adjusts call to finish_id_expression and
443 finish_class_member_access_expr.
444 * semantics.c (finish_non_static_data_member): Use
445 build_qualified_name.
446 (finish_qualified_id_expr): Add template_p and template_arg_p
447 parameters.
448 (finish_id_expression): Remove qualifiying_class parameter. Add
449 template_p, done, address_p, and template_arg_p. Use
450 build_qualified_name. Adjust calls to
451 finish_class_member_acess_expr.
452 * tree.c (build_qualified_name): New function.
453 * typeck.c (check_template_keyword): New function.
454 (finish_class_member_access_expr): Add template_p argument. Check
455 for invalid uses of the template keyword.
456
457 2005-10-15 Mark Mitchell <mark@codesourcery.com>
458
459 PR c++/21347
460 * class.c (maybe_warn_about_overly_private_class): Lazy
461 constructors are public.
462
463 2005-10-14 Mark Mitchell <mark@codesourcery.com>
464
465 PR c++/19565
466 * call.c (convert_like_real): Rely on convert_and_check to issue
467 warnings about overflow and conversion to unsigned.
468 * decl.c (finish_enum): Use the location of the enumerators, not
469 the closing brace of the enumeration, when reporting warnings
470 about conversions.
471 (build_enumerator): Use error_mark_node for erroneous values.
472 * typeck2.c (digest_init): Remove reference to "signature pointer"
473 from comment.
474
475 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
476
477 PR c++/17796
478 * optimize.c (update_cloned_parm): Add FIRST parameter. Use it.
479 (maybe_clone_body): Track the first clone.
480
481 2005-10-13 Nathan Sidwell <nathan@codesourcery.com>
482
483 PR c++/23984
484 * class.c (build_base_path): The vtable is always the first thing
485 in the vtt.
486
487 2005-10-13 Mark Mitchell <mark@codesourcery.com>
488
489 PR c++/20721
490 * cp-tree.h (DECL_NONTRIVIALLY_INITIALIZED_P): New macro.
491 * decl.c (duplicate_decls): Merge it into new declarations.
492 (decl_jump_unsafe): Use it, rather than DECL_INITIAL.
493 (cp_finish_decl): Set it, when appropriate.
494
495 PR c++/22180
496 * call.c (build_new_method_call): Correct pretty-printing of
497 destructor names.
498 * pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an
499 identifier.
500
501 PR c++/23694
502 * decl.c (start_method): Return error_mark_node for errors.
503
504 PR c++/23307
505 * pt.c (push_template_decl_real): Complain about attempts to
506 declare template variables.
507
508 PR c++/22352
509 * pt.c (tsubst_template_parms): Set processing_template_decl while
510 processing the parameters.
511 (tsubst_decl): Set processing_template_decl when substituting into
512 a TEMPLATE_DECL.
513
514 PR c++/22405
515 * pt.c (most_specialized_instantiation): Robustify.
516
517 PR c++/22464
518 * semantics.c (finish_id_expression): Issue errors about uses of
519 local variables in containing functions even in templates.
520
521 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
522
523 PR target/21801
524 PR target/23589
525 * class.c (finish_struct_1): Call
526 targetm.cxx.adjust_class_at_definition.
527
528
529 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
530
531 PR c++/21592
532 * pt.c (build_non_dependent_expr): Don't wrap a COMPONENT_REF
533 with already looked up member functions. Assert we're not
534 returning a NON_DEPENDENT_EXPR with unknown type.
535 * typeck.c (finish_class_member_access_expr): We can get
536 non-template-id-expr baselinks. If the lookup finds a baselink,
537 remember it even inside templates.
538
539 PR c++/23797
540 * parser.c (cp_parser_functional_cast): Cope when TYPE is not a
541 TYPE_DECL. Use dependent_type_p to check type.
542 * pt.c (uses_template_parms_p): Use dependent_type_p for a
543 TYPE_DECL.
544 (type_dependent_expression_p): Assert we've not been given a
545 TYPE_DECL.
546
547 PR c++/21117
548 * decl.c (check_function_type): Correctly overwrite incomplete
549 return type with void type.
550 * typeck.c (check_return_expr): If the function's return type is
551 void, don't try and convert a return expr.
552
553 2005-10-12 David Edelsohn <edelsohn@gnu.org>
554
555 PR c++/23730
556 * call.c (build_object_call): If BINFO is NULL, bypass
557 lookup_fnfields and set fns to NULL_TREE.
558
559 2005-10-12 Paolo Bonzini <bonzini@gnu.org>
560
561 PR c++/24052
562 * error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print
563 an ADDR_EXPR of a LABEL_DECL as &&.
564
565 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
566
567 PR c++/19964
568 * class.c (walk_subobject_offsets): Don't walk error_mark_node.
569
570 2005-10-11 Ian Lance Taylor <ian@airs.com>
571
572 PR c++/8057
573 * cvt.c (convert_to_void): Don't warn about unused values when
574 processing a template declaration.
575
576 2005-10-11 Mark Mitchell <mark@codesourcery.com>
577
578 PR c++/21089
579 * call.c (convert_like_real): Use decl_constant_value, not
580 integral_constant_value.
581 * init.c (constant_value_1): New function.
582 (integral_constant_value): Use it.
583 (decl_constant_value): Likewise.
584 * typeck.c (decay_conversion): Use decl_constant_value, not
585 integral_constant_value.
586
587 PR c++/21369
588 * parser.c (cp_parser_elaborated_type_specifier): Don't treat
589 class types as templates if the type is not appearing as part of a
590 type definition or declaration.
591
592 2005-10-10 Mark Mitchell <mark@codesourcery.com>
593
594 PR c++/24277
595 * pt.c (instantiate_decl): Call finish_static_data_member_decl for
596 static data members.
597
598 2005-10-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
599 Mark Mitchell <mark@codesourcery.com>
600
601 PR c++/23437
602 * parser.c (cp_parser_template_argument_list): Do not treat
603 contents of argument list as part of a constant expression.
604
605 2005-10-10 Mark Mitchell <mark@codesourcery.com>
606
607 PR c++/24139
608 * decl.c (grokdeclarator): Do not require template parameter lists
609 for explicitly specialized class.
610 * error.c (dump_aggr_type): Do not dump template arguments for
611 non-primary specializations.
612 (dump_function_name): Likewise.
613
614 PR c++/24275
615 * pt.c (instantiate_decl): Instantiate the initializer of
616 a static data member in the namespace containing the class
617 containing the static data member.
618
619 2005-10-08 James A. Morrison <phython@gcc.gnu.org>
620
621 PR c++/22172
622 * parser.c (cp_parser_postfix_expression) <RID_TYPENAME>: Treat nontype
623 scopes as nondependent.
624
625 2005-10-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
626
627 * call.c (resolve_args): Remove redundant test.
628
629 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
630
631 PR tree-optimization/21419
632 PR tree-optimization/24146
633 PR tree-optimization/24151
634
635 * semantics.c (finish_asm_stmt): Call readonly_error if outputs are
636 read-only. Set ASM_VOLATILE_P for asms without outputs.
637
638 2005-10-05 Nathan Sidwell <nathan@codesourcery.com>
639
640 PR c++/23513
641 * call.c (joust): Adjust length count to more_specialized_fn.
642 * pt.c (more_specialized_fn): Cope with non-static member vs
643 non-member.
644
645 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
646
647 PR middle-end/23125
648 * decl.c (make_rtl_for_nonlocal_decl): Use set_user_assembler_name
649 instead of change_decl_assembler_name.
650
651 2005-10-03 Alexandre Oliva <aoliva@redhat.com>
652
653 * error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
654
655 2005-10-03 Mark Mitchell <mark@codesourcery.com>
656
657 PR c++/17775
658 * repo.c: Include flags.h.
659 (finish_repo): Add -frandom-seed to the arguments.
660
661 2005-10-02 Mark Mitchell <mark@codesourcery.com>
662
663 PR c++/22621
664 * parser.c (cp_parser_template_argument): Don't turn "T::f" into
665 "(*this).T::f".
666 * pt.c (convert_nontype_argument): Remove ??? comment.
667
668 PR c++/23840
669 * tree.c (lvalue_p_1): A VA_ARG_EXPR with class type is an lvalue,
670 when class rvalues are lvalues.
671
672 2005-09-28 Mark Mitchell <mark@codesourcery.com>
673
674 PR c++/16782
675 * decl.c (grokdeclarator): Always pedwarn about overqualified
676 member names.
677
678 2005-09-27 Mark Mitchell <mark@codesourcery.com>
679
680 PR c++/22147
681 * name-lookup.c (maybe_process_template_type_declaration): Don't
682 treat forward declarations of classes as templates just because
683 we're processing_template_decl.
684 * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INFO for friend
685 functions.
686
687 2005-09-26 Jason Merrill <jason@redhat.com>
688
689 PR c++/13764
690 * cp-tree.h (FUNCTION_NEEDS_BODY_BLOCK): New macro.
691 * name-lookup.c (pushdecl_maybe_friend): Check it.
692 * decl.c (begin_function_body): Do nothing if it's false.
693 (finish_function_body): Ditto.
694 (outer_curly_brace_block): New fn.
695 (finish_function): Use it.
696
697 2005-09-26 Richard Guenther <rguenther@suse.de>
698
699 PR middle-end/15855
700 * decl2.c (do_static_destruction): Remove.
701 (finish_static_initialization_or_destruction): Likewise.
702 (DECL_EFFECTIVE_INIT_PRIORITY): New macro.
703 (NEEDS_GUARD_P): Likewise.
704 (do_static_initialization): Rename to
705 do_static_initialization_or_destruction. Process all
706 initializers/destructors and handle common conditionalizing.
707 (start_static_initialization_or_destruction): Rename to
708 one_static_initialization_or_destruction. Handle only
709 decl-specific conditionalizing.
710 (cp_finish_file): Call do_static_initialization_or_destruction.
711
712 2005-09-22 Jakub Jelinek <jakub@redhat.com>
713
714 PR c++/21983
715 * class.c (find_final_overrider): Move diagnostic about no unique final
716 overrider to...
717 (update_vtable_entry_for_fn): ... here.
718
719 2005-09-21 Mark Mitchell <mark@codesourcery.com>
720
721 PR c++/23993
722 * init.c (integral_constant_value): Use DECL_INTEGRAL_CONSTANT_VAR_P.
723
724 2005-09-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
725
726 PR c++/23965
727 * call.c (resolve_args): Return error_mark_node on arguments
728 whose TREE_TYPE is error_mark_node.
729
730 2005-09-20 Jakub Jelinek <jakub@redhat.com>
731
732 PR c++/23947
733 * rtti.c (get_pseudo_ti_init): Recompute ti pointer after
734 get_tinfo_ptr calls.
735
736 2005-09-16 Mark Mitchell <mark@codesourcery.com>
737
738 PR c++/23914
739 * parser.c (cp_parser_enclosed_template_argument_list): Make sure
740 skip_evaluation is false when processing template arguments.
741
742 PR c++/21514
743 * pt.c (check_instantiated_args): Treat uses of anonymous types as
744 causing type-deduction failure.
745
746 2005-09-15 Jason Merrill <jason@redhat.com>
747
748 PR c++/23357
749 * cp-tree.def (SIZEOF_EXPR, ALIGNOF_EXPR): Change code class to
750 tcc_expression.
751
752 2005-09-15 Mark Mitchell <mark@codesourcery.com>
753
754 PR c++/23896
755 * pt.c (tsubst_aggr_type): Make sure skip_evaluation is false when
756 processing template arguments.
757
758 * pt.c (check_explicit_instantiation_namespace): Fix typo.
759
760 PR c++/13140
761 * decl.c (check_class_member_definition_namespace): New function.
762 (grokfndecl): Use it.
763 (grokvardecl): Likewise.
764 (grokdecl): Improve documentation.
765 * pt.c (check_explicit_instantiation_namespace): New function.
766 (register_specialization): Call check_specialization_namespace
767 when replacing an implicitly instantiated function.
768 (check_explicit_specialization): Ensure that DECL_CONTEXT is set
769 correctly for namespace-scope specializations.
770 (do_decl_instantiation): Use
771 check_explicit_instantiation_namespace.
772 (do_type_instantiation): Likewise.
773
774 2005-09-15 Nathan Sidwell <nathan@codesourcery.com>
775
776 PR c++/23725
777 * error.c (dump_decl): <USING_DECL case> Use USING_DECL_SCOPE.
778
779 2005-09-13 Bastian Blank <waldi@debian.org>
780
781 PR c++/16171
782 * mangle.c (find_substitution): Do not use special substitutions
783 for identifiers not in std::.
784
785 2005-09-13 Mark Mitchell <mark@codesourcery.com>
786
787 PR c++/23839
788 * typeck.c (cxx_mark_addressable): Only check DECL_HARD_REGISTER
789 for VAR_DECLs.
790
791 2005-09-13 Mark Mitchell <mark@codesourcery.com>
792
793 PR c++/23842
794 * pt.c (tsubst_default_argument): Do treat default argument
795 expressions as occurring in the context of the function called.
796
797 2005-09-12 Mark Mitchell <mark@codesourcery.com>
798
799 PR c++/23841
800 * parser.c (cp_parser_primary_expression): Recognize the closing
801 ">" of a template-argument-list after a floating-point literal as
802 the end of a cast expression.
803
804 2005-09-12 Mark Mitchell <mark@codesourcery.com>
805
806 PR c++/23789
807 * cvt.c (perform_qualification_conversions): Don't create
808 unnecessary NOP_EXPRs.
809 * pt.c (tsubst_template_arg): Use fold_non_dependent_expr.
810
811 2005-09-12 Ian Lance Taylor <ian@airs.com>
812
813 PR g++/7874
814 * cp-tree.h (struct lang_decl_flags): Add hidden_friend_p
815 bitfield. Make dummy bitfield one bit smaller.
816 (DECL_HIDDEN_FRIEND_P): Define.
817 (pushdecl_maybe_friend): Declare.
818 (pushdecl_top_level_maybe_friend): Declare.
819 * decl.c (duplicate_decls): Add newdecl_is_friend parameter.
820 Change prototype and all callers. Add assertion that a
821 DECL_ARTIFICIAL FUNCTION_DECL is not DECL_HIDDEN_FRIEND_P. Set
822 DECL_ANTICIPATED and DECL_HIDDEN_FRIEND_P in duplicated decl if
823 appropriate.
824 * name-lookup.c (supplement_binding): Don't ignore a
825 DECL_HIDDEN_FRIEND_P.
826 (pushdecl_maybe_friend): Break out contents of pushdecl. Add
827 is_friend parameter. Set DECL_ANTICIPATED and
828 DECL_HIDDEN_FRIEND_P for a friend function.
829 (pushdecl): Just call pushdecl_maybe_friend.
830 (pushdecl_with_scope): Add is_friend parameter. Change prototype
831 and all callers.
832 (pushdecl_namespace_level): Likewise.
833 (push_overloaded_decl): Likewise. Check DECL_HIDDEN_FRIEND_P as
834 well as DECL_ANTICIPATED when checking for a builtin.
835 (do_nonmember_using_decl): Check DECL_HIDDEN_FRIEND_P as well as
836 DECL_ANTICIPATED when checking for a builtin.
837 (do_nonmember_using_decl): Likewise.
838 (pushdecl_top_level_1): Add is_friend parameter. Change all
839 callers.
840 (pushdecl_top_level_maybe_friend): New function.
841 (remove_hidden_names): New function.
842 (struct arg_lookup): Add args field.
843 (friend_of_associated_class_p): New static function.
844 (arg_assoc_namespace): Ignore hidden functions which are not
845 friends of an associated class of some argument.
846 (lookup_arg_dependent): Remove hidden functions from list passed
847 in. Initialize k.args.
848 * name-lookup.h (remove_hidden_names): Declare.
849 * friend.c (do_friend): Call pushdecl_maybe_friend instead of
850 pushdecl.
851 * call.c (add_function_candidate): Change DECL_ANTICIPATED test to
852 an assertion, with a check for DECL_HIDDEN_FRIEND_P.
853 (build_new_function_call): Add koenig_p parameter. Change
854 prototype and callers.
855 * pt.c (register_specialization): Add is_friend parameter. Change
856 all callers.
857 (push_template_decl_real): Change is_friend parameter to bool.
858 Change prototype and all callers.
859 (tsubst_friend_class): Call pushdecl_top_level_maybe_friend
860 instead of pushdecl_top_level.
861
862 2005-09-11 Richard Henderson <rth@redhat.com>
863
864 * decl2.c (build_anon_union_vars): Copy attributes from the base addr.
865 * pt.c (tsubst_decl): Substitute in DECL_VALUE_EXPR.
866
867 2005-09-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
868
869 * parser.c (cp_parser_translation_unit): Simplify. The while-block
870 was actually executed at most once.
871
872 2005-09-09 Richard Henderson <rth@redhat.com>
873
874 PR debug/20998
875 * cp-tree.def (ALIAS_DECL): Remove.
876 * cp-lang.c (cp_init_ts): Remove support for it.
877 * error.c (dump_decl): Likewise.
878 * name-lookup.c (pushdecl): Likewise.
879 * semantics.c (finish_id_expression): Likewise.
880 * decl2.c (build_anon_union_vars): Use a VAR_DECL with
881 DECL_VALUE_EXPR instead.
882
883 2005-09-09 Mark Mitchell <mark@codesourcery.com>
884
885 PR c++/22252
886 * decl.c (start_preparsed_function): Do not pay attention to
887 #pragma interface for implicitly-defined methods.
888 * decl2.c (cp_finish_file): Do not complain about uses of inline
889 functions that have bodies, even if we decided not to emit the
890 body in this translation unit.
891 * semantics.c (note_decl_for_pch): Do not mess with linkage.
892 (expand_or_defer_fn): Make inline, non-template functions COMDAT
893 at this point.
894
895 2005-09-08 Richard Henderson <rth@redhat.com>
896
897 PR debug/23190
898 * decl.c (wrapup_globals_for_namespace): Call
899 emit_debug_global_declarations.
900 * decl2.c (cp_finish_file): Likewise.
901
902 2005-09-08 Mark Mitchell <mark@codesourcery.com>
903
904 PR c++/23691
905 * decl2.c (mark_used): Instantiate static data members initialized
906 by constants, even in a template.
907
908 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
909
910 PR obj-c++/16816
911 * parser.c (cp_parser_objc_selector_expression): Treat CPP_SCOPE as
912 two CPP_COLON.
913
914 2005-09-07 Richard Guenther <rguenther@suse.de>
915
916 * cp-gimplify.c (cp_gimplify_expr): Create empty CONSTRUCTOR
917 for EMPTY_CLASS_EXPR.
918
919 2005-09-06 Jakub Jelinek <jakub@redhat.com>
920
921 PR c/23075
922 * typeck.c (check_return_expr): Add no_warning argument. Set
923 *no_warning to true if "return-statement with no value, in function
924 returning" warning has been issued.
925 * cp-tree.h (check_return_expr): Adjust prototype.
926 * semantics.c (finish_return_stmt): Set TREE_NO_WARNING if
927 check_return_expr set *no_warning to true.
928
929 2005-09-06 Mark Mitchell <mark@codesourcery.com>
930
931 * cp-tree.h (rvalue): New function.
932 * call.c (build_conditional_expr): Use it.
933 * init.c (build_new_1): Likewise.
934 * rtti.c (build_dynamic_cast_1): Likewise.
935 * tree.c (rvalue): New function.
936 * typeck.c (build_unary_op): Use it.
937 (build_static_cast_1): Likewise.
938
939 PR c++/9782
940 * init.c (build_new_1): Make sure the entire array type is
941 complete, not just its element types.
942
943 2005-09-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
944
945 * decl.c (check_elaborated_type_specifier): Remove redundant check.
946
947 2005-09-06 Jakub Jelinek <jakub@redhat.com>
948
949 PR c++/23056
950 * typeck.c (ignore_overflows): New helper function.
951 (build_static_cast_1): Use it.
952
953 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
954
955 * cp-tree.h, decl.c, decl2.c, semantics.c: Fix comment typos.
956 Follow spelling conventions.
957
958 2005-09-05 Mark Mitchell <mark@codesourcery.com>
959
960 PR c++/23667
961 * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INSTANTIATED when
962 copying a VAR_DECL.
963
964 2005-09-05 Mark Mitchell <mark@codesourcery.com>
965
966 PR c++/21440
967 * semantics.c (finish_stmt_expr_expr): Add an explicit
968 initialization to the last statement in the statement-expression.
969 * (finish_stmt_expr): Adjust accordingly.
970
971 2005-09-03 Mark Mitchell <mark@codesourcery.com>
972
973 PR c++/23699
974 * decl2.c (mark_used): Always instantiate static data members
975 initialized by constant expressions.
976 * pt.c (instantiate_decl): Instantiate the initializers for static
977 data members initialized by constant expressions.
978
979 PR c++/21687
980 * semantics.c (expand_or_defer_fn): Do not call ggc_collect when
981 finishing processing for a template function in a local class.
982 Revert:
983 2005-09-02 Mark Mitchell <mark@codesourcery.com>
984 * parser.c (cp_parser_class_specifier): Push/pop GC contexts
985 around functions in local classes.
986
987 2005-09-02 Mark Mitchell <mark@codesourcery.com>
988
989 PR c++/21687
990 * parser.c (cp_parser_class_specifier): Push/pop GC contexts
991 around functions in local classes.
992
993 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu>
994
995 PR obj-c++/23640
996 * decl2.c (cp_finish_file): If this is obj-c++ and we need a static
997 init, call generate_ctor_or_dtor_function.
998
999 2005-08-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1000
1001 PR c++/13377
1002 * parser.c (cp_parser_lookup_name): Pass LOOKUP_COMPLAIN to
1003 lookup_name_real on final parse.
1004
1005 2005-08-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1006
1007 PR c++/23639
1008 * semantics.c (qualified_name_lookup_error): Do not complain again
1009 on invalid scope.
1010
1011 2005-08-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1012
1013 PR c++/23586
1014 * parser.c (cp_parser_namespace_name): Move diagnostic for
1015 invalid namespace-name to here from ...
1016 * name-lookup.c (do_namespace_alias): ... here and ...
1017 (do_using_directive): ... here. Remove dead code.
1018
1019 2005-08-28 Mark Mitchell <mark@codesourcery.com>
1020
1021 PR c++/23099
1022 * cp-tree.h (saved_scope): Add skip_evaluation.
1023 * decl.c (start_decl): Use DECL_INITIALIZED_IN_CLASS_P, not
1024 DECL_INITIAL, to determine whether or not a static data member was
1025 initialized in the class-specifier.
1026 (cp_finish_decl): Add comment.
1027 * init.c (integral_constant_value): Subtitute into the
1028 initializers for static data members in templates.
1029 * name-lookup.c (push_to_top_level): Save skip_evaluation.
1030 (pop_from_top_level): Restore it.
1031 * pt.c (instantiate_class_template): Do not substitute into the
1032 intializers of static data members when instantiating a class.
1033 (regenerate_decl_from_template): Simplify.
1034 (instantiate_decl): Tidy. Substitute into the initializer for a
1035 static data member even when the definition of the data member is
1036 not available.
1037
1038 2005-08-26 Mark Mitchell <mark@codesourcery.com>
1039
1040 PR c++/19004
1041 * pt.c (uses_template_parms): Handle IDENTIFIER_NODE.
1042 (type_dependent_expression_p): Allow BASELINKs whose associated
1043 functions are simply a FUNCTION_DECL.
1044
1045 PR c++/23491
1046 * cp-tree.h (build_vec_init): Adjust prototype.
1047 * init.c (perform_member_init): Adjust call to build_vec_init.
1048 (build_aggr_init): Likewise.
1049 (build_new_1): Do not call build_default_init for array types.
1050 (build_vec_init): Add explicit_default_init_p parameter. Perform
1051 default initialization of vector elements when set.
1052 * typeck.c (build_modify_expr): Adjust call to build_vec_init.
1053
1054 2005-08-25 Nathan Sidwell <nathan@codesourcery.com>
1055
1056 PR c++/20817
1057 * typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a
1058 ->*.
1059
1060 2005-08-24 Nathan Sidwell <nathan@codesourcery.com>
1061
1062 PR c++/22454
1063 * parser.c (cp_lexer_peek_nth_token): Relax assert.
1064
1065 2005-08-23 Nathan Sidwell <nathan@codesourcery.com>
1066
1067 PR c++/23044
1068 * pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
1069
1070 2005-08-22 James E Wilson <wilson@specifix.com>
1071
1072 PR tree-optimization/23426
1073 * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
1074 array size check.
1075
1076 2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1077
1078 PR c++/22233
1079 * pt.c (push_template_decl_real): Return error_mark_node if the
1080 number of template parameters does not match previous definition.
1081
1082 2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1083
1084 PR c++/23089
1085 * decl.c (require_complete_types_for_parms): Mark incomplete types
1086 as invalid.
1087
1088 2005-08-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1089
1090 * parser.c (cp_parser_nth_token_starts_template_argument_list_p):
1091 Fix typo in leading comment.
1092
1093 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1094
1095 * name-lookup.c, ptree.c: Delete HOST_PTR_PRINTF.
1096
1097 2005-08-15 Fariborz Jahanian <fjahanian@apple.com>
1098
1099 * cp-tree.h (can_convert_arg, fn_type_unification): New argument.
1100 * call.c (add_template_candidate_real): Pass down 'flags' to
1101 fn_type_unification.
1102 (can_convert_arg): New 'flags' argument. Pass it to call to
1103 implicit_conversion instead of LOOKUP_NORMAL.
1104 (can_convert): Add LOOKUP_NORMAL to call to can_convert_arg.
1105 * class.c (resolve_address_of_overloaded_function): Ditto.
1106 (resolve_address_of_overloaded_function): Ditto.
1107 * decl.c (reshape_init, check_default_argument): Ditto.
1108 * typeck.c (build_ptrmemfunc): Ditto.
1109 * pt.c (type_unification_real): Add 'flags' argument.
1110 (fn_type_unification): Pass 'flags' to type_unification_real.
1111 (type_unification_real): Pass new 'flags' argument to call to
1112 can_convert_arg.
1113
1114 2005-08-12 Giovanni Bajo <giovannibajo@libero.it>
1115 Nathan Sidwell <nathan@codesourcery.com>
1116
1117 PR c++/21799
1118 PR c++/8271
1119 * pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
1120 explicitly.
1121
1122 2005-08-12 Nathan Sidwell <nathan@codesourcery.com>
1123
1124 PR c++/21799
1125 Revert my 2005-07-08 patch
1126 * pt.c (type_unification_real): Remove is_method_argument and
1127 assoicated checks.
1128 (fn_type_unification, unify): Adjust type_unification_real calls.
1129
1130 2005-08-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1131
1132 PR c++/23266
1133 * decl2.c (grokfield): Check that method is not static before
1134 marking it as pure.
1135
1136 2005-08-11 Nathan Sidwell <nathan@codesourcery.com>
1137
1138 PR c++/23219
1139 * name-lookup.c (pushtag): Process the template type before
1140 altering the identifier lookup fields. Remove unreachable code
1141 creating an empty stub decl.
1142
1143 2005-08-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1144
1145 PR c++/20646
1146 * decl.c (grokdeclarator): Reset storage_class after error.
1147
1148 2005-08-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1149
1150 PR c++/22508
1151 * init.c (build_new_1): Check for empty candidate list.
1152
1153 2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1154
1155 PR c++/23191
1156 * pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node
1157 before calling build_exception_variant.
1158
1159 2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1160
1161 PR c++/19498
1162 * pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
1163 if substitution of template args did not succeed.
1164
1165 2005-08-06 Michael Matz <matz@suse.de>
1166
1167 * method.c (use_thunk): Call init_insn_lengths.
1168
1169 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
1170
1171 PR c++/22514
1172 * name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
1173 sorrycount or errorcount are nonzero.
1174
1175 2005-08-05 Mark Mitchell <mark@codesourcery.com>
1176
1177 * name-lookup.c (pushtag): Remove accidental commit from:
1178 2004-12-21 Mark Mitchell <mark@codesourcery.com>
1179 PR c++/19063
1180 * decl.c (grokdeclarator): Return error_mark_node, not
1181 void_type_node, to indicate errors.
1182 * parser.c (cp_parser_template_parameter_list): Robustify.
1183 (cp_parser_template_parameter): Likewise.
1184
1185 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
1186
1187 * class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
1188 Fix comment typos.
1189
1190 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
1191
1192 * method.c: Fix a comment typo.
1193
1194 2005-07-28 Mark Mitchell <mark@codesourcery.com>
1195
1196 PR c++/22545
1197 * call.c (add_builtin_candidate): Adjust for changes in
1198 representation of pointer-to-member types.
1199
1200 2005-07-28 Mike Stump <mrs@apple.com>
1201
1202 * pt.c (check_explicit_specialization): Add visibility logic.
1203 (lookup_template_class): Likewise.
1204 (instantiate_class_template): Likewise.
1205
1206 2005-07-27 Devang Patel <dpatel@apple.com>
1207
1208 * name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit.
1209
1210 2005-07-25 Ian Lance Taylor <ian@airs.com>
1211
1212 * ptree.c (cxx_print_identifier): Print a leading space if the
1213 indent level is 0.
1214
1215 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1216
1217 * call.c (convert_for_arg_passing): Check function pointers when
1218 -Wmissing-format-attribute is activated.
1219 * typeck.c (convert_for_assignment): Likewise.
1220
1221 2005-07-22 Manfred Hollstein <mh@suse.com>
1222
1223 * parser.c (cp_parser_declaration): Fix unitialised warnings.
1224
1225 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1226
1227 * class.c (build_base_path): Fix typo.
1228
1229 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1230
1231 PR C++/22358
1232 * class.c (build_base_path): Convert BINFO_OFFSET to the correct type.
1233
1234 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1235
1236 * call.c: Fix comment typo(s).
1237 * cxx-pretty-print.h: Likewise.
1238 * name-lookup.c: Likewise.
1239 * parser.c: Likewise.
1240
1241 2005-07-20 Douglas Gregor <doug.gregor@gmail.com>
1242
1243 PR c++/2922
1244 * semantics.c (perform_koenig_lookup): For dependent calls, just
1245 return the set of functions we've found so far. Later, it will be
1246 augmented by those found through argument-dependent lookup.
1247 * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing
1248 the optimization that skips namespaces where the functions were
1249 originally found.
1250
1251 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
1252
1253 Make CONSTRUCTOR use VEC to store initializers.
1254 * call.c (convert_default_arg): Update call to digest_init.
1255 * class.c (dump_class_hierarchy, dump_array): Update to cope with
1256 VEC in CONSTRUCTOR_ELTS.
1257 * cp-tree.h (EMPTY_CONSTRUCTOR_P): Likewise.
1258 (finish_compound_literal, digest_init): Update declaration.
1259 * decl.c (struct reshape_iter): New data type.
1260 (reshape_init_array): Rename to...
1261 (reshape_init_array_1): Update to cope with VEC in CONSTRUCTOR_ELTS.
1262 (reshape_init): Rewrite from scratch. Split parts into...
1263 (reshape_init_array, reshape_init_vector, reshape_init_class,
1264 reshape_init_r): New functions.
1265 (check_initializer): Update call to reshape_init. Remove obsolete
1266 code.
1267 (initialize_artificial_var, cp_complete_array_type): Update to cope
1268 with VEC in CONSTRUCTOR_ELTS.
1269 * decl2.c (grokfield): Update calls to digest_init.
1270 (mark_vtable_entries): Update to cope with VEC in CONSTRUCTOR_ELTS.
1271 * error.c (dump_expr_init_vec): New function.
1272 (dump_expr): Use dump_expr_init_vec.
1273 * init.c (build_zero_init, build_vec_init): Update to cope with VEC
1274 in CONSTRUCTOR_ELTS.
1275 (expand_default_init): Update call to digest_init.
1276 * parser.c (cp_parser_postfix_expression): Use a VEC for the
1277 initializers.
1278 (cp_parser_initializer_list): Build a VEC of initializers.
1279 * pt.c (tsubst_copy, tsubst_copy_and_build): Update to cope with VEC
1280 in CONSTRUCTOR_ELTS.
1281 * rtti.c (tinfo_base_init, generic_initializer, ptr_initializer,
1282 ptm_initializer, class_initializer, get_pseudo_ti_init): Use
1283 build_constructor_from_list instead of build_constructor.
1284 * semantics.c (finish_compound_literal): Update call to digest_init.
1285 * tree.c (stabilize_init): Update to cope with VEC in
1286 CONSTRUCTOR_ELTS.
1287 * typeck.c (build_ptrmemfunc1): Likewise.
1288 * typeck2.c: (cxx_incomplete_type_error, split_nonconstant_init_1):
1289 Likewise.
1290 (store_init_value): Use build_constructor_from_list and update call
1291 to digest_init.
1292 (digest_init): Rewrite.
1293 (process_init_constructor): Rewrite from scratch. Split into...
1294 (process_init_constructor_array, picflag_from_initializer,
1295 process_init_constructor_record, process_init_constructor_union):
1296 New functions.
1297 (PICFLAG_ERRONEOUS, PICFLAG_NOT_ALL_CONSTANT, PICFLAG_NOT_ALL_SIMPLE):
1298 New macros.
1299 (build_functional_cast): Use build_constructor_from_list instead of
1300 build_constructor.
1301
1302 2005-07-18 Mark Mitchell <mark@codesourcery.com>
1303
1304 PR c++/22263
1305 * cp-tree.h (instantiate_decl): Change prototype.
1306 * decl2.c (mark_used): Adjust accordingly.
1307 * pt.c (do_decl_instantiation): Likewise.
1308 (instantiate_class_member): Likewise.
1309 (instantiate_decl): Rename undefined_ok as expl_inst_class_mem_p.
1310 Clear DECL_INTERFACE_KNOWN for an explicitly instantiated template
1311 that has no definition available.
1312 (instantiate_pending_templates): Adjust call to instantiate_decl.
1313
1314 2005-07-17 Mark Mitchell <mark@codesourcery.com>
1315
1316 PR c++/22139
1317 * cp-tree.h (DECL_TEMPLATE_INFO): Improve documentation.
1318 * decl.c (duplicate_decls): Re-register template specializations
1319 for functions that have DECL_TEMLPLATE_INFO, even if they do not
1320 have DECL_TEMPLATE_INSTANTIATION set.
1321
1322 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1323
1324 * call.c (diagnostic_fn_t): New.
1325 (build_temp, convert_like_real): Use diagnostic_fn_t.
1326
1327 2005-07-15 Mark Mitchell <mark@codesourcery.com>
1328
1329 PR c++/22204
1330 * repo.c (repo_emit_p): Robustify.
1331
1332 2005-07-14 Daniel Berlin <dberlin@dberlin.org>
1333
1334 Fix PR c++/22452
1335 * tree.c (decl_linkage): Don't check DECL_COMDAT on CONST_DECL.
1336
1337 2005-07-15 Mark Mitchell <mark@codesourcery.com>
1338
1339 PR c++/22132
1340 * call.c (implicit_conversion): Add c_cast_p parameter.
1341 (standard_conversion): Likewise. Allow conversions between
1342 differently-qualified pointer types when performing a C-style
1343 cast.
1344 (add_function_candidate): Adjust callee.
1345 (build_builtin_candidate): Likewise.
1346 (build_user_type_conversion_1): Likewise.
1347 (conditional_conversion): Likewise.
1348 (can_convert_arg): Likewise.
1349 (can_convert_arg_bad): Likewise.
1350 (perform_implicit_conversion): Likewise.
1351 * cp-tree.h (comp_ptr_ttypes_const): Declare.
1352 * typeck.c (comp_ptr_ttypes_const): Give it external linkage.
1353 Return bool.
1354
1355 2005-07-12 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1356 Nathan Sidwell <nathan@codesourcery.com>
1357
1358 PR c++/20172
1359 * pt.c (tsubst_template_parms): Check for invalid non-type
1360 parameters.
1361
1362 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
1363
1364 * cp-lang.c (shadowed_var_for_decl, decl_shadowed_for_var_lookup,
1365 decl_shadowed_for_var_insert): Move over to cp-objcp-common.c.
1366 (cp_init_ts): Call init_shadowed_var_for_decl.
1367 Remove include of gt-cp-cp-lang.h.
1368 * cp-objcp-common.c (shadowed_var_for_decl,
1369 decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Moved from
1370 cp-lang.c.
1371 (init_shadowed_var_for_decl): New function to initialize
1372 shadowed_var_for_decl.
1373 Include gt-cp-cp-objcp-common.h.
1374 * Make-lang.in (gt-cp-lang.h): Remove.
1375 (gt-cp-cp-objcp-common.h): Add.
1376 (cp/cp-lang.o): Remove dependancy on gt-cp-lang.h.
1377 (cp/cp-objcp-common.o): Add dependancy on gt-cp-cp-objcp-common.h.
1378 * config-lang.in (gtfiles): Remove cp-lang.c and Add cp-objcp-common.c.
1379 * cp-tree (init_shadowed_var_for_decl): Add prototype.
1380
1381 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
1382
1383 * Make-lang.in: Add gt-cp-lang.h.
1384 (cp-lang.o): Ditto.
1385 * class.c (create_vtable_ptr): Stop setting DECL_ASSEMBLER_NAME on
1386 the field.
1387 * config-lang.in: Add cp-lang.c to gtfiles.
1388 * cp-lang.c: Include hashtab.h.
1389 (cp_init_ts): New function.
1390 (LANG_HOOK_INIT_TS): Use macro.
1391 (decl_shadowed_for_var_lookup): New function.
1392 (decl_shadowed_for_var_insert): Ditto.
1393 * cp-tree.h (THUNK_FUNCTION_CHECK): Use decl_common.
1394 (NON_THUNK_FUNCTION_CHECK): Ditto.
1395 (DECL_NAMESPACE_ASSOCIATIONS): Use decl_non_common.
1396 (DECL_INIT_PRIORITY): Ditto.
1397 (DECL_HAS_SHADOWED_FOR_VAR_P): Ditto.
1398 (DECL_SHADOWED_FOR_VAR): Use hashtable.
1399 (SET_DECL_SHADOWED_FOR_VAR): Ditto.
1400 * decl.c (duplicate_decls): Update for new/updated structures.
1401 (poplevel): Use SET_DECL_SHADOWED_FOR_VAR.
1402 * decl2.c (start_static_initialization_or_destruction): Deal with
1403 priority.
1404 * pt.c (tsubst_decl): Check TS_DECL_WRTL before doing
1405 SET_DECL_RTL.
1406 * tree.c (handle_init_priority_attribute): Handle priority.
1407
1408 2005-07-08 Nathan Sidwell <nathan@codesourcery.com>
1409
1410 PR c++/21799
1411 * pt.c (type_unification_real): Add is_method argument. Use it
1412 for this pointer unification.
1413 (fn_type_unification): Adjust type_unification_real call.
1414 (unify): Likewise.
1415
1416 2005-07-07 Nathan Sidwell <nathan@codesourcery.com>
1417
1418 * pt.c (type_unification_real): Remove allow_incomplete argument.
1419 Remove unreachable code.
1420 (fn_type_unification): Adjust call to type_unification_real.
1421 (unify): Likewise.
1422
1423 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
1424
1425 * Makefile.in (class.o, decl2.o): Adjust dependencies.
1426 * class.c: Include tree-dump.h.
1427 * decl2.c: Include tree-dump.h.
1428
1429 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1430
1431 * dump.c: Use dump_string_field.
1432
1433 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
1434
1435 * cp-tree.h (GCC_DIAG_STYLE): #undef before defining. Change
1436 minimum GCC version for format checking to 4.1.
1437
1438 2005-07-02 Kazu Hirata <kazu@codesourcery.com>
1439
1440 * Make-lang.in (cc1plus-checksum.c): Use
1441 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
1442
1443 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
1444
1445 * name-lookup.c, parser.c: Use %q, %< and %> to quote in
1446 diagnostics.
1447
1448 2005-07-02 Zack Weinberg <zack@codesourcery.com>
1449 Joseph S. Myers <joseph@codesourcery.com>
1450
1451 * error.c (location_of): Add comment.
1452 (locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
1453 * cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
1454 * call.c, class.c, decl.c, decl2.c, friend.c, init.c,
1455 name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
1456 typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
1457 or cp_pedwarn_at. Mark up some diagnostic strings with N_.
1458
1459 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
1460
1461 * decl.c (require_complete_types_for_parms): Call relayout_decl
1462 instead of layout_decl.
1463
1464 2005-06-30 Zack Weinberg <zack@codesourcery.com>
1465 Jakub Jelinek <jakub@redhat.com>
1466
1467 * cp-lang.c: No need to include cxx-pretty-print.h.
1468 * error.c (cp_printer): Update signature. No need to process
1469 flags.
1470 (print_instantiation_partial_context): Output last newline
1471 with pp_base_newline.
1472 * Make-lang.in: Update dependencies.
1473
1474 2005-06-30 Steven Bosscher <stevenb@suse.de>
1475
1476 * decl.c (start_decl): Replace DECL_THREAD_LOCAL with
1477 DECL_THREAD_LOCAL_P.
1478 (cp_finish_decl): Likewise.
1479 (grokvardecl): Set the default DECL_TLS_MODEL here.
1480
1481 2005-06-28 Joseph S. Myers <joseph@codesourcery.com>
1482
1483 * cvt.c (ocp_convert): Use invalid_conversion hook.
1484 * typeck.c (build_binary_op): Use invalid_binary_op hook.
1485 (build_unary_op): Use invalid_unary_op hook.
1486
1487 2005-06-28 Paul Brook <paul@codesourcery.com>
1488
1489 * Make-lang.in (cp/except.o): Depend on $(TARGET_H)
1490 * except.c: Include target.h.
1491 (init_exception_processing): Initialize unwind_resume_libfunc.
1492 * doc/tm.texi: Document TARGET_ASM_TTYPE
1493
1494 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1495
1496 * call.c (build_over_call): Pass in named argument list to
1497 `check_function_arguments'.
1498 * typeck.c (build_function_call): Likewise.
1499
1500 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1501
1502 * cp-tree.h (lang_check_failed): Add noreturn attribute.
1503
1504 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
1505
1506 * all files: Update FSF address in copyright headers.
1507
1508 2005-06-23 Jason Merrill <jason@redhat.com>
1509
1510 PR c++/19317
1511 * semantics.c (simplify_aggr_init_expr): Use
1512 CALL_EXPR_RETURN_SLOT_OPT, not CALL_EXPR_HAS_RETURN_SLOT_ADDR.
1513
1514 2005-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1515
1516 * pt.c (register_specialization): Remove superfluous assertion.
1517
1518 2005-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1519
1520 * call.c (convert_like_real): Add format attribute.
1521 * typeck.c (check_for_casting_away_constness,
1522 build_static_cast_1): Likewise.
1523 * typeck2.c (readonly_error, cxx_incomplete_type_diagnostic):
1524 Likewise.
1525
1526 2005-06-17 Geoffrey Keating <geoffk@apple.com>
1527
1528 PR c++/17413
1529 * pt.c (type_unification_real): Apply template type deduction even
1530 to procedure parameters that are not dependent on a template
1531 parameter.
1532
1533 2005-06-16 Nathan Sidwell <nathan@codesourcery.com>
1534
1535 * rtti.c (get_tinfo_decl): Avoid caching tinfo_descs when it might
1536 change.
1537 (create_pseudo_type_info): First parameter is an int.
1538
1539 2005-06-15 Nathan Sidwell <nathan@codesourcery.com>
1540
1541 PR c++/20678
1542 * error.c (dump_expr) <COMPONENT_REF case>: Check DECL_NAME is not
1543 null.
1544
1545 * Make-lang.in: Reformat some long lines.
1546 (gt-cp-rtti.h): New target.
1547 (cp/rtti.o): Add dependency.
1548 * config-lang.in (gtfiles): Add cp/rtti.c.
1549 * cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
1550 CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
1551 CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
1552 CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
1553 CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
1554 (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
1555 ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
1556 class_desc_type_node, si_class_desc_type_node,
1557 vmi_class_desc_type_node, ptm_desc_type_node,
1558 base_desc_type_node): Remove.
1559 * decl.c: Adjust documentation of global trees.
1560 * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
1561 TINFO_REAL_NAME): Remove.
1562 (struct tinfo_s): New.
1563 (enum tinfo_kind): New.
1564 (tinfo_descs): New.
1565 (get_tinfo_decl): Adjust use of tinfo descriptor.
1566 (tinfo_base_init, generic_initializer, ptr_initializer,
1567 ptm_initializer, class_initializer): Likewise.
1568 (get_pseudo_ti_init): Take descriptor index. Adjust.
1569 (create_pseudo_type_info): Likewise.
1570 (get_pseudo_ti_desc): Return descriptor index. Adjust.
1571 (create_tinfo_types): Adjust use of create_pseudo_type_info.
1572 (emit_tinfo_decl): Adjust use of tinfo descriptor.
1573
1574 2005-06-14 Roger Sayle <roger@eyesopen.com>
1575
1576 * decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
1577
1578 2005-06-13 Geoffrey Keating <geoffk@apple.com>
1579
1580 * Make-lang.in (c++.install-man): Doesn't really depend on installdirs.
1581 (rule for installing g++.1 manpage): Does depend on installdirs.
1582
1583 2005-06-13 Nathan Sidwell <nathan@codesourcery.com>
1584
1585 PR c++/20789
1586 * decl.c (cp_finish_decl): Clear runtime runtime initialization if
1587 in-class decl's initializer is bad.
1588
1589 PR c++/21929
1590 * parser.c (struct cp_parser): Document that scope could be
1591 error_mark.
1592 (cp_parser_diagnose_invalid_type_name): Cope with error_mark for
1593 scope.
1594 (cp_parser_nested_name_specifier): Return NULL_TREE on error.
1595 (cp_parser_postfix_expression): Deal with null or error_mark
1596 scope.
1597 (cp_parser_elaborated_type_specifier): Adjust
1598 cp_parser_nested_name_specifier call.
1599
1600 * parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
1601
1602 2005-06-12 Roger Sayle <roger@eyesopen.com>
1603
1604 PR c++/21930
1605 * error.c (dump_expr): UNARY_PLUS_EXPR need not handle void types.
1606 Treat CONVERT_EXPR identically to NOP_EXPR.
1607
1608 2005-06-10 Aldy Hernandez <aldyh@redhat.com>
1609
1610 PR c++/10611
1611 * cvt.c (build_expr_type_conversion): Same.
1612 * typeck.c (build_binary_op): Handle vectors.
1613 (common_type): Same.
1614 (type_after_usual_arithmetic_conversions): Same.
1615
1616 2005-06-08 Nathan Sidwell <nathan@codesourcery.com>
1617
1618 PR c++/19497
1619 * cp-tree.def (USING_DECL): Update documentation.
1620 * cp-tree.h (DECL_DEPENDENT_P): New.
1621 (USING_DECL_DECLS, USING_DECL_SCOPE): New.
1622 * class.c (handle_using_decl): Move most of the processing to ...
1623 * name-lookup.c (do_class_using_decl): ... here. Make stricter.
1624 (push_using_decl): Use USING_DECL_SCOPE.
1625 (cp_emit_debug_info_for_using): Make extern.
1626 * cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
1627 * name-lookup.h (cp_emit_debug_info_for_using): Declare.
1628 * pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
1629 when tsubsting.
1630 (tsubst_expr): Use USING_DECL_SCOPE.
1631 * search.c (lookup_field_1): Use DECL_DEPENDENT_P.
1632 * semantics.c (finish_member_declaration): Likewise.
1633
1634 2005-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1635
1636 PR c++/19894
1637 * pt.c (tsubst): Reject pointer-to-member of type void.
1638
1639 PR c++/20563
1640 * parser.c (cp_parser_label_declaration): Deal with invalid/missing
1641 identifiers.
1642
1643 2005-06-07 Nathan Sidwell <nathan@codesourcery.com>
1644
1645 * cp-tree.def (DEFAULT_ARG): Adjust documentation.
1646 * cp-tree.h (DEFARG_INSTANTIATIONS): New.
1647 (struct tree_default_arg): Add instantiations member.
1648 * parser.c (cp_parser_late_parsing_default_args): Adjust to use a
1649 VEC.
1650 * pt.c (tsubst_arg_types): Likewise.
1651
1652 * parser.c (cp_parser_late_parsing_default_args): Fix overeager
1653 assert in previous patch.
1654
1655 2005-06-06 Jakub Jelinek <jakub@redhat.com>
1656
1657 * error.c (locate_error): Use gmsgid instead of msgid for argument
1658 name.
1659 (cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
1660
1661 2005-06-06 Nathan Sidwell <nathan@codesourcery.com>
1662
1663 PR 21903
1664 * cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
1665 * parser.c (cp_parser_late_parsing_default_args): Propagate parsed
1666 argument to any early instantiations.
1667 * pt.c (tsubst_arg_types): Chain early instantiation of default arg.
1668
1669 PR c++/20637
1670 * cp-tree.h (add_method): Add using_decl parameter.
1671 * class.c (add_method): Add using_decl parameter. Adjust error
1672 messages.
1673 (handle_using_decl): Pass the using decl to add_method.
1674 (clone_function_decl): Adjust add_member calls.
1675 * decl2.c (check_classfn): Likewise.
1676 * method.c (lazily_declare_fn): Likewise.
1677 * semantics.c (finish_member_declaration): Likewise.
1678
1679 * method.c (synthesize_method): Use inform, not warning.
1680
1681 2005-06-06 Hans-Peter Nilsson <hp@axis.se>
1682
1683 * config-lang.in (target_libs): Remove target-gperf.
1684
1685 2005-06-05 Mark Mitchell <mark@codesourcery.com>
1686
1687 PR c++/21619
1688 * cp-tree.h (DECL_IS_BUILTIN_CONSTANT_P): New macro.
1689 * parser.c (cp_parser_postfix_expression): Allow non-constant
1690 expressions as arguments to __builtin_constant_p.
1691 * tree.c (builtin_valid_in_constant_expr_p): Use
1692 DECL_IS_BUILTIN_CONSTANT_P.
1693
1694 2005-06-03 Mark Mitchell <mark@codesourcery.com>
1695
1696 PR c++/21853
1697 * typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
1698 the pointed-to type for a pointer-to-member.
1699
1700 PR c++/21336
1701 * cp-tree.h (grok_op_properties): Remove friendp parameter.
1702 * decl.c (grokfndecl): Adjust call.
1703 (grok_op_properties): Determine the class of which the function is
1704 a member by looking at its DECL_CONTEXT, not current_class_type.
1705 * pt.c (tsubst_decl): Adjust call to grok_op_properties.
1706
1707 2005-06-02 Nathan Sidwell <nathan@codesourcery.com>
1708
1709 * method.c (synthesize_method): Add addtional arg to warning call.
1710
1711 PR c++/21280
1712 * Make-lang.in (method.o): Add diagnostic.h
1713 * decl.c (start_preparsed_function): Use decl's location for file
1714 info.
1715 * decl2.c (cp_finish_file): Set input_location before synthesizing
1716 a function.
1717 (mark_used): When deferring a synthesized function, save current
1718 location. Do not set function's location when actually
1719 synthesizing it.
1720 * method.c: #include diagnostic.h.
1721 (synthesize_method): Set the functions source location. Show
1722 needed location if errors are emitted.
1723
1724 * decl.c (start_decl): Simplify specialization handling. Remove
1725 unneeded CLASSTYPE_TEMPLATE_INSTANTIATION check.
1726 * mangle.c (discriminator_for_local_entity): Use VEC_index.
1727
1728 PR c++/20350
1729 * decl.c (duplicate_decls): Copy all of DECL_USE_TEMPLATE.
1730
1731 PR c++/21151
1732 * name-lookup.c (pushtag): Push local class even in a template.
1733
1734 2005-05-31 Nathan Sidwell <nathan@codesourcery.com>
1735
1736 PR c++/21165
1737 * init.c (integral_constant_value): Check the type of the
1738 initializer, not the decl.
1739
1740 2005-05-30 Mark Mitchell <mark@codesourcery.com>
1741
1742 PR c++/21784
1743 * name-lookup.c (do_nonmember_using_decl): Ignore builtin
1744 functions, even when the used name is not a function.
1745
1746 2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
1747
1748 * operators.def, optimize.c: Update copyright.
1749
1750 2005-05-28 Mark Mitchell <mark@codesourcery.com>
1751
1752 PR c++/21210
1753 * call.c (standard_conversion): Permit conversions to complex
1754 types if conversion to the corresponding scalar type would be
1755 permitted.
1756
1757 PR c++/21340
1758 * method.c (implicitly_declare_fn): Clear processing_template_decl
1759 when generating implicit declaration.
1760
1761 2005-05-27 Mark Mitchell <mark@codesourcery.com>
1762
1763 PR c++/21614
1764 * typeck.c (get_member_function_from_ptrfunc): Do not attempt
1765 conversions to base classes of incomplete types.
1766
1767 2005-05-27 Ian Lance Taylor <ian@airs.com>
1768
1769 * semantics.c (add_stmt): Add C++ frontend specific version.
1770 * cp-tree.h (STMT_IS_FULL_EXPR_P): Define.
1771 (stmts_are_full_exprs_p): Declare.
1772
1773 2005-05-27 Roger Sayle <roger@eyesopen.com>
1774 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1775
1776 * cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code.
1777 * parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead
1778 of CONVERT_EXPR.
1779 (cp_parser_unary_expression): Likewise.
1780 * typeck.c (build_unary_op): Likewise.
1781 * call.c (add_builtin_candidate, build_new_op): Likewise.
1782 * error.c (dump_expr): Likewise.
1783 * pt.c (tsubst_copy, tsubst_copy_and_build): Likewise.
1784 * decl.c (ambi_op_p, grok_op_properties): Likewise.
1785 * dump.c (dump_op): Likewise.
1786 * lex.c (init_operators): Likewise.
1787 * operators.def ("+"): Likewise.
1788 * cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a
1789 conversion, if the result and argument types differ.
1790 * tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much
1791 like a NOP_EXPR when !processing_template_decl.
1792
1793 * cxx-pretty-print.c (pp_cxx_cast_expression): Prototype.
1794 (pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code.
1795
1796 2005-05-27 Nathan Sidwell <nathan@codesourcery.com>
1797
1798 PR c++/21455
1799 * typeck.c (get_delta_difference): Cope with incomplete but equal
1800 classes. Reorder if.
1801
1802 PR c++/21681
1803 * parser.c (cp_parser_late_parsing_for_member): Disable access
1804 checking for template functions.
1805
1806 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1807
1808 PR c++/21768
1809 * pt.c (redeclare_class_template): Change error message according
1810 to coding conventions.
1811
1812 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1813
1814 * call.c (build_op_delete_call): Fix quoting in error message.
1815
1816 2005-05-25 Richard Henderson <rth@redhat.com>
1817
1818 PR libgcj/21692
1819 * cp-tree.h (make_alias_for): Declare.
1820 * decl2.c (build_java_method_aliases): New.
1821 (cp_finish_file): Call it.
1822 * method.c (make_alias_for): Split out from ...
1823 (make_alias_for_thunk): ... here.
1824
1825 2005-05-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1826
1827 PR c++/21686
1828 * semantics.c (finish_id_expression): Fix quoting in error message.
1829
1830 2005-05-25 DJ Delorie <dj@redhat.com>
1831
1832 * decl.c (duplicate_decls): Move warning control from if() to
1833 warning(OPT_*).
1834 * name-lookup.c (parse_using_directive): Likewise.
1835 * parser.c (cp_parser_elaborated_type_specifier): Likewise.
1836 (cp_parser_init_declarator): Likewise.
1837 * tree.c (handle_com_interface_attribute): Likewise.
1838
1839 2005-05-24 Ziemowit Laski <zlaski@apple.com>
1840
1841 * class.c (layout_class_type): Do not issue C++ ABI warnings
1842 for ObjC structs.
1843 * decl.c (objc_mark_locals_volatile): Streamline by calling
1844 objc_volatilize_decl().
1845 * parser.c (cp_parser_objc_message_expression): Allow simple
1846 type specifiers (instead of merely type names) as message
1847 receivers.
1848 * pt.c (template_args_equal): Do not call objc_comptypes().
1849 * typeck.c (composite_pointer_type): If both pointers are
1850 ObjC-esque, arbitrarily choose the first; do not call
1851 objc_comptypes().
1852 (comptypes): Do not call objc_comptypes().
1853 (convert_for_assignment): Call objc_compare_types().
1854 (comp_ptr_ttypes_real): Call objc_type_quals_match() before
1855 concluding that types do not match.
1856
1857 2005-05-24 Andrew Pinski <pinskia@physics.uc.edu>
1858
1859 PR C++/21645
1860 * optimize.c (update_cloned_parm): Copy the TYPE also from the
1861 original one.
1862
1863 2005-05-19 Jakub Jelinek <jakub@redhat.com>
1864
1865 PR c++/21495
1866 * decl.c (grokdeclarator): Fix "storage class specified for"
1867 error reporting.
1868
1869 2005-05-19 Kazu Hirata <kazu@cs.umass.edu>
1870
1871 * parser.c: Fix comment typos.
1872
1873 2005-05-18 Geoffrey Keating <geoffk@apple.com>
1874
1875 * Make-lang.in (cc1plus-dummy): New.
1876 (cc1plus-checksum.c): New.
1877 (cc1plus-checksum.o): New.
1878 (cc1plus): Add cc1plus-checksum.o.
1879
1880 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 PR C++/19664
1883 * decl2.c (determine_visibility): Don't set visibility to
1884 hidden if it has been set explicitly by user.
1885
1886 2005-05-17 Ziemowit Laski <zlaski@apple.com>
1887 Mike Stump <mrs@apple.com>
1888
1889 Yet more Objective-C++...
1890
1891 * cp-objcp-common.h (cxx_get_alias_set): Move from
1892 here...
1893 (cxx_warn_unused_global_decl): Likewise.
1894 (cp_expr_size): Likewise.
1895 (cp_tree_size): Likewise.
1896 (cp_var_mod_type_p): Likewise.
1897 (cxx_initialize_diagnostics): Likewise.
1898 (cxx_types_compatible_p): Likewise.
1899 * cp-tree.h: to here.
1900 (do_poplevel): Add.
1901 * lex.c (D_OBJC): Add.
1902 (init_reswords): Add.
1903 * Make-lang.in (cp/pt.o): Add cp/cp-objcp-common.h.
1904 * parser.c: Add c-common.h include.
1905 * pt.c: Add c-common.h and cp-objcp-common.h includes.
1906 (template_args_equal): Use objc_comptypes as well.
1907 (tsubst_copy_and_build): Use objcp_tsubst_copy_and_build as well.
1908 * semantics.c (do_poplevel): Remove static.
1909
1910 * decl.c (objc_mark_locals_volatile): Don't change decls that are
1911 already ok.
1912 * decl2.c (generate_ctor_or_dtor_function): Add code to initialize
1913 Objective C++ early enough.
1914 * lex.c (struct resword reswords): Add Objective-C++ support.
1915 * parser.c (cp_lexer_get_preprocessor_token): Add Objective-C++.
1916 (cp_parser_objc_message_receiver): Add.
1917 (cp_parser_objc_message_args): Likewise.
1918 (cp_parser_objc_message_expression): Likewise.
1919 (cp_parser_objc_encode_expression): Likewise.
1920 (cp_parser_objc_defs_expression): Likewise.
1921 (cp_parser_objc_protocol_expression): Likewise.
1922 (cp_parser_objc_selector_expression): Likewise.
1923 (cp_parser_objc_expression): Likewise.
1924 (cp_parser_objc_visibility_spec): Likewise.
1925 (cp_parser_objc_method_type): Likewise.
1926 (cp_parser_objc_protocol_qualifiers): Likewise.
1927 (cp_parser_objc_typename): Likewise.
1928 (cp_parser_objc_selector_p): Likewise.
1929 (cp_parser_objc_selector): Likewise.
1930 (cp_parser_objc_method_keyword_params): Likewise.
1931 (cp_parser_objc_method_tail_params_opt): Likewise.
1932 (cp_parser_objc_interstitial_code): Likewise.
1933 (cp_parser_objc_method_signature): Likewise.
1934 (cp_parser_objc_method_prototype_list): Likewise.
1935 (cp_parser_objc_method_definition_list): Likewise.
1936 (cp_parser_objc_class_ivars): Likewise.
1937 (cp_parser_objc_identifier_list): Likewise.
1938 (cp_parser_objc_alias_declaration): Likewise.
1939 (cp_parser_objc_class_declaration): Likewise.
1940 (cp_parser_objc_protocol_declaration): Likewise.
1941 (cp_parser_objc_protocol_refs_opt): Likewise.
1942 (cp_parser_objc_superclass_or_category): Likewise.
1943 (cp_parser_objc_class_interface): Likewise.
1944 (cp_parser_objc_class_implementation): Likewise.
1945 (cp_parser_objc_end_implementation): Likewise.
1946 (cp_parser_objc_declaration): Likewise.
1947 (cp_parser_objc_try_catch_finally_statement): Likewise.
1948 (cp_parser_objc_synchronized_statement): Likewise.
1949 (cp_parser_objc_throw_statement): Likewise.
1950 (cp_parser_objc_statement): Likewise.
1951 (cp_parser_primary_expression): Add Objective-C++.
1952 (cp_parser_statement): Likewise.
1953 (cp_parser_declaration): Likewise.
1954 (cp_parser_simple_type_specifier): Likewise.
1955 (cp_parser_type_name): Likewise.
1956 (cp_parser_parameter_declaration_list): Likewise.
1957 (cp_parser_member_declaration) Likewise.
1958 * tree.c: Include debug.h.
1959 * typeck.c (composite_pointer_type): Add Objective-C++ support.
1960 (finish_class_member_access_expr): Likewise.
1961 (build_function_call): Allow objc to rewrite FUNCTION_DECLs.
1962 (build_modify_expr): Allow objc to generate write barriers.
1963
1964 * Make-lang.in (cp/tree.o): Add debug.h.
1965 * tree.c (lvalue_p_1, case CONST_DECL): Add.
1966
1967 2005-05-18 Jan Hubicka <jh@suse.cz>
1968
1969 * method.c: Include tree-pass.h
1970 (use_thunk): Lower body before expanding.
1971
1972 2005-05-17 Jakub Jelinek <jakub@redhat.com>
1973
1974 PR c++/21454
1975 * decl.c (maybe_deduce_size_from_array_init): Call
1976 cp_apply_type_quals_to_decl after completing array type.
1977
1978 2005-05-16 Richard Henderson <rth@redhat.com>
1979
1980 * decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
1981 (build_library_fn): ... here.
1982
1983 2005-05-12 Ian Lance Taylor <ian@airs.com>
1984
1985 * cp-tree.h (cp_stmt_codes): Don't define.
1986 (statement_code_p): Declare.
1987 (STATEMENT_CODE_P): Define.
1988 * lex.c (statement_code_p): Define.
1989 (cxx_init): Use actual codes in stmt_codes initializer, not
1990 cp_stmt_codes macro. Initialize statement_code_p directly, rather
1991 than using INIT_STATEMENT_CODES.
1992
1993 2005-05-09 Mark Mitchell <mark@codesourcery.com>
1994
1995 * typeck.c (build_unary_op): Do not resort to address arithmetic
1996 when taking the address of a COMPONENT_REF.
1997
1998 2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
1999
2000 * class.c (vtbl_init_data_s): Change the type of fns to
2001 VEC(tree,gc)*.
2002 (build_vtbl_initializer, add_vcall_offset, add_vcall_offset):
2003 Use VEC instead of VARRAY.
2004
2005 2005-05-07 Richard Sandiford <rsandifo@redhat.com>
2006
2007 * mangle.c: Remove a reference to the MIPS -mint64 option.
2008
2009 2005-05-07 Kazu Hirata <kazu@cs.umass.edu>
2010
2011 * decl.c (wrapup_globals_for_namespace): Use VEC instead of
2012 VARRAY.
2013 * name-lookup.c (add_decl_to_level, begin_scope): Likewise.
2014 * name-lookup.h (cp_binding_level): Change the type of
2015 static_decls to VEC(tree,gc)*.
2016
2017 * mangle.c (globals): Change the type of substitutions to
2018 VEC(tree,gc)*.
2019 (dump_substitution_candidates, add_substitution,
2020 find_substitution, finish_mangling, init_mangle): Use VEC
2021 instead of VARRAY.
2022
2023 2005-05-06 Kazu Hirata <kazu@cs.umass.edu>
2024
2025 * decl2.c (spew_debug): Remove.
2026
2027 * decl2.c (ssdf_decls, start_static_storage_duration_function,
2028 generate_ctor_or_dtor_function): Use VEC instead of VARRAY.
2029
2030 * decl2.c (pending_statics, note_vague_linkage_var,
2031 cp_finish_file): Use VEC instead of VARRAY.
2032 (pending_statics_used): Remove.
2033
2034 2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
2035
2036 * decl2.c (deferred_fns, note_vague_linkage_fn,
2037 cp_finish_file): Use VEC instead of VARRAY.
2038
2039 2005-05-05 Mark Mitchell <mark@codesourcery.com>
2040
2041 PR c++/21352
2042 * pt.c (build_non_dependent_expr): Use is_overloaded_fn.
2043
2044 2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
2045
2046 * pt.c: Fix a comment typo.
2047
2048 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
2049
2050 * cp-tree.h (language_function): Change the type of
2051 x_local_names to VEC.
2052 * decl.c (push_local_name): Adjust uses of local_names.
2053
2054 2005-05-03 Kazu Hirata <kazu@cs.umass.edu>
2055
2056 * friend.c, lex.c, mangle.c, repo.c: Update copyright.
2057
2058 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
2059
2060 * class.c (local_classes, init_class_processing): Use VEC
2061 instead of VARRAY.
2062 * cp-tree.h (local_classes): Likewise.
2063 * mangle.c (discriminator_for_local_entity): Likewise.
2064 * name-lookup.c (pushtag): Likewise.
2065
2066 * class.c (current_lang_depth, push_lang_context,
2067 pop_lang_context): Use VEC instead of VARRAY.
2068 * cp-tree.h (saved_scope): Use VEC for lang_base instead of
2069 VARRAY.
2070 * name-lookup.c (push_to_top_level): Use VEC instead of
2071 VARRAY.
2072
2073 2005-05-02 Paolo Bonzini <bonzini@gnu.org>
2074
2075 * semantics.c (finish_call_expr): Call resolve_overloaded_builtin
2076 for BUILT_IN_MD built-ins.
2077
2078 2005-05-02 Michael Matz <matz@suse.de>
2079
2080 PR c++/19542
2081 * cp-tree.h (cp_tree_index): Remove CPTI_NULL, to be defined in C
2082 common frontend.
2083 (null_node): Remove.
2084 * lex.c (cxx_init): Move null_node initialisation to C common frontend.
2085
2086 2005-04-25 Ian Lance Taylor <ian@airs.com>
2087
2088 * cp-tree.def: Add EXPR_STMT.
2089 * cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
2090 (EXPR_STMT_EXPR): Define.
2091 * cp-gimplify.c: Include "flags.h".
2092 (gimplify_expr_stmt): New static function.
2093 (cp_gimplify_expr): Handle EXPR_STMT.
2094 * cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
2095 rather than pp_expression.
2096 (pp_cxx_statement): Handle EXPR_STMT.
2097 * dump.c (cp_dump_tree): Handle EXPR_STMT.
2098 * lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
2099 initializer.
2100
2101 2005-04-25 Andrew Pinski <pinskia@physics.uc.edu>
2102
2103 PR C++/21188
2104 * rtti.c (ifnonnull): Cast the zero comparison operand
2105 to the correct type.
2106
2107 2005-04-24 Jakub Jelinek <jakub@redhat.com>
2108
2109 PR middle-end/20991
2110 * class.c: Include cgraph.h.
2111 (cp_fold_obj_type_ref): Set node->local.vtable_method.
2112 * Make-lang.in (cgraph.o): Depend on $(CGRAPH_H).
2113
2114 2005-04-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
2115
2116 * mangle.c (write_builtin_type): Handle integer types which are
2117 not one of the shared integer type nodes and emit a "vendor
2118 extended builtin type" with an encoding in the form of "u5int96".
2119
2120 2005-04-24 Ian Lance Taylor <ian@airs.com>
2121
2122 * cp-tree.def (USING_STMT): Change class to tcc_statement.
2123 (TRY_BLOCK, EH_SPEC_BLOCK, HANDLER, CLEANUP_STMT): Likewise.
2124 (IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT): Likewise.
2125 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
2126
2127 2005-04-23 DJ Delorie <dj@redhat.com>
2128
2129 * call.c, class.c, cvt.c, decl.c, decl2.c, except.c, friend.c,
2130 init.c, lex.c, mangle.c, method.c, name-lookup.c, parser.c,
2131 repo.c, rtti.c, tree.c, typeck.c, typeck2.c: Adjust warning()
2132 callers.
2133
2134 2005-04-22 Per Bothner <per@bothner.com>
2135
2136 * decl.c (make_rtl_for_nonlocal_decl): Don't try get_fileinfo if
2137 input_filename is NULL, as it is for (say) __PRETTY_FUNCTION__.
2138
2139 2005-04-22 Alexandre Oliva <aoliva@redhat.com>
2140
2141 PR c++/21087
2142 * name-lookup.c (push_overloaded_decl): Do not overload with
2143 non-duplicate anticipated built-in.
2144
2145 2005-04-21 Kazu Hirata <kazu@cs.umass.edu>
2146
2147 * cp-tree.h (THROW_NAME, AUTO_VTABLE_NAME, AUTO_TEMP_FORMAT,
2148 VTABLE_BASE, VTABLE_NAME_PREFIX, STATIC_NAME_FORMAT): Remove.
2149
2150 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
2151
2152 * cp-tree.h: Adjust for new VEC API.
2153 Define VEC(tree_pair_s,gc).
2154 (struct save_scope): Adjust.
2155 (struct lang_type_class): Adjust.
2156 (unemitted_tinfo_decls): Adjust.
2157 * class.c (add_method, resort_type_method_vec,
2158 finish_struct_methods, struct find_final_overrider_data,
2159 dfs_find_final_overrider_pre, find_final_overrider,
2160 get_vcall_index, warn_hidden, walk_subobject_offsets,
2161 check_methods, fixup_inline_methods, end_of_class,
2162 warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
2163 add_vcall_offset): Adjust.
2164 * decl.c (xref_basetypes, finish_method): Adjust.
2165 * decl2.c (check_classfn): Adjust.
2166 * init.c (sort_mem_initializers, push_base_cleanups): Adjust.
2167 * method.c (do_build_copy_constructor): Adjust.
2168 * name-lookup.c (new_class_binding, store_binding,
2169 store_bindings, store_class_bindings): Adjust.
2170 * name-lookup.h: Define VEC(cxx_saved_binding,gc),
2171 VEC(cp_class_binding,gc).
2172 (struct cp_binding_level): Adjust.
2173 * parser.c: Define VEC(cp_token_position,heap).
2174 (struct cp_lexer): Adjust.
2175 (cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
2176 cp_lexer_save_tokens): Adjust.
2177 * pt.c (retrieve_specialization,
2178 check_explicit_specialization): Adjust.
2179 * rtti.c (unemitted_tinfo_decls): Adjust.
2180 (init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
2181 get_pseudo_ti_desc): Adjust.
2182 * search.c (dfs_access_in_type, lookup_conversion_operator,
2183 lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
2184 dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
2185 * semantics.c: Define VEC(deferred_access,gc).
2186 (push_deferring_access_checks): Adjust.
2187 * typeck2.c (abstract_virtuals_error): Adjust.
2188
2189 2005-04-20 Ian Lance Taylor <ian@airs.com>
2190
2191 * cp-tree.def: Add STMT_EXPR.
2192 * cp-tree.h (STMT_EXPR_NO_SCOPE): Define.
2193 (STMT_EXPR_STMT): Define.
2194 * cxx-pretty-print.c (pp_cxx_primary_expression): Handle
2195 STMT_EXPR.
2196 (pp_cxx_expression): Likewise.
2197 (pp_cxx_statement): Call pp_cxx_statement, not pp_statement.
2198 * dump.c (cp_dump_tree): Handle STMT_EXPR.
2199
2200 2005-04-18 Kazu Hirata <kazu@cs.umass.edu>
2201
2202 * decl.c (expand_static_init): Call build2 and build3 instead
2203 of build.
2204
2205 * cp-tree.h (VPTR_NAME, VPTR_NAME_P): Remove.
2206
2207 2005-04-17 Ian Lance Taylor <ian@airs.com>
2208
2209 * cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR.
2210 * cxx-pretty-print.c (pp_cxx_postfix_expression): Handle
2211 ARROW_EXPR.
2212 (pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR.
2213 (pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and
2214 ALIGNOF_EXPR.
2215 * typeck.c (cxx_sizeof_or_alignof_type): Update call to
2216 c_sizeof_or_alignof_type for change in parameter type.
2217
2218 2005-04-16 Mark Mitchell <mark@codesourcery.com>
2219
2220 PR c++/21025
2221 * typeck.c (cxx_sizeof_or_alignof_type): Check whether the type to
2222 which sizeof/alignof is dependent, rather than just whether we are
2223 processing_template_decl.
2224
2225 2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
2226
2227 * cp-tree.h (LOOKUP_GLOBAL): Remove.
2228 (LOOKUP_ONLYCONVERTING, DIRECT_BIND, LOOKUP_NO_CONVERSION,
2229 LOOKUP_DESTRUCTOR, LOOKUP_NO_TEMP_BIND, LOOKUP_PREFER_TYPES,
2230 LOOKUP_PREFER_NAMESPACES, LOOKUP_CONSTRUCTOR_CALLABLE): Adjust
2231 their values.
2232
2233 2005-04-15 Richard Henderson <rth@redhat.com>
2234
2235 PR middle-end/14311
2236 * semantics.c (finish_call_expr): Call resolve_overloaded_builtin.
2237
2238 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
2239
2240 * cp-tree.h (lang_type_class): Remove redefined. Move
2241 java_interface into where redefined was. Increment the width
2242 of dummy.
2243 (TYPE_REDEFINED): Remove.
2244
2245 2005-04-14 Kazu Hirata <kazu@cs.umass.edu>
2246
2247 * cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
2248 CLASSTYPE_TEMPLATE_LEVEL): Remove.
2249
2250 2005-04-11 Mark Mitchell <mark@codesourcery.com>
2251
2252 * decl2.c (determine_visibility): Don't use export_class_data.
2253 (import_export_decl): Honor TARGET_CXX_CLASS_DATA_ALWAYS_WEAK and
2254 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY.
2255
2256 2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
2257
2258 * cp-tree.h (cxx_alignof): Remove.
2259
2260 * cp-tree.h (DECL_ARRAY_DELETE_OPERATOR_P): Remove.
2261
2262 * cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
2263 CONV_STATIC_CAST): Remove.
2264
2265 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Remove.
2266
2267 * cp-tree.h (VF_BINFO_VALUE, VF_BASETYPE_VALUE): Remove.
2268
2269 * cp-tree.h (cp_deprecated): Remove.
2270
2271 2005-04-08 Ian Lance Taylor <ian@airs.com>
2272
2273 * cp-tree.def: Define FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
2274 CONTINUE_STMT, SWITCH_STMT.
2275 * cp-tree.h (cp_stmt_codes): Add FOR_STMT, WHILE_STMT, DO_STMT,
2276 BREAK_STMT, CONTINUE_STMT, SWITCH_STMT.
2277 (WHILE_COND, WHILE_BODY): Define.
2278 (DO_COND, DO_BODY): Define.
2279 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Define.
2280 (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Define.
2281 * cp-gimplify.c (enum bc_t): Define.
2282 (struct cp_gimplify_ctx, ctxp): Define.
2283 (push_context, pop_context): New static functions.
2284 (begin_bc_block, finish_bc_block): New static functions.
2285 (build_bc_goto): New static function.
2286 (gimplify_cp_loop, gimplify_for_stmt): New static functions.
2287 (gimplify_while_stmt, gimplify_do_stmt): Likewise.
2288 (gimplify_switch_stmt): Likewise.
2289 (cp_gimplify_expr): Handle FOR_STMT, WHILE_STMT, DO_STMT,
2290 SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
2291 (cp_genericize): Call push_context and pop_context.
2292 * semantics.c (finish_break_stmt): Just call build_stmt
2293 (BREAK_STMT) rather than build_break_stmt.
2294 (finish_continue_stmt): Corresponding change.
2295 * decl.c (pop_switch): Update call to c_do_switch_warnings for new
2296 parameters.
2297 * cxx-pretty-print.c (pp_cxx_statement): Handle SWITCH_STMT,
2298 WHILE_STMT, DO_STMT, FOR_STMT, BREAK_STMT, CONTINUE_STMT.
2299 * dump.c (cp_dump_tree): Likewise.
2300
2301 2005-04-08 Mark Mitchell <mark@codesourcery.com>
2302
2303 PR c++/20905
2304 * parser.c (cp_parser_type_specifier_seq): Add is_condition
2305 parameter.
2306 (cp_parser_new_type_id): Pass it.
2307 (cp_parser_condition): Likewise.
2308 (cp_parser_conversion_type_id): Likewise.
2309 (cp_parser_type_id): Likewise.
2310 (cp_parser_type_specifier_seq): In a condition, do not allow
2311 invalid type-specifier combinations.
2312 (cp_parser_exception_declaration): Adjust call to
2313 cp_parser_type_specifier_seq.
2314
2315 * cp-tree.def (TINST_LEVEL): Document TINST_IN_SYSTEM_HEADER_P.
2316 * cp-tree.h (struct tinst_level): Add in_system_header_p.
2317 (TINST_IN_SYSTEM_HEADER_P): New macro.
2318 (make_tinst_level): Remove.
2319 * pt.c (lookup_template_class): Preserve DECL_IN_SYSTEM_HEADER on
2320 the instantiated class.
2321 (push_tinst_level): Do not use make_tinst_level. Set
2322 TINST_IN_SYSTEM_HEADER_P.
2323 (pop_tinst_level): Likewise.
2324 (instantiate_class_template): Set in_system_header.
2325 (instantiate_pending_templates): Likewise.
2326 * tree.c (make_tinst_level): Remove.
2327
2328 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
2329
2330 * decl.c (start_decl): Apply pending #pragma weak regardless of
2331 scope.
2332
2333 2005-04-06 Mark Mitchell <mark@codesourcery.com>
2334
2335 PR c++/20212
2336 * pt.c (regenerate_decl_from_template): Copy attributes for
2337 parameters from the pattern to the instantiation.
2338
2339 2005-04-05 Mark Mitchell <mark@codesourcery.com>
2340
2341 PR c++/20734
2342 * cp-tree.def (OFFSET_REF): Correct comments.
2343 * init.c (build_offset_ref): Remove misleading comment.
2344 * typeck.c (build_unary_op): Handle pointer-to-member creation
2345 here, rather than ...
2346 (unary_complex_lvalue): ... here.
2347
2348 2005-04-06 Jason Merrill <jason@redhat.com>
2349
2350 PR c++/19312
2351 * tree.c (stabilize_init): Don't bother trying to stabilize
2352 something with no side-effects.
2353
2354 2005-04-05 Mark Mitchell <mark@codesourcery.com>
2355
2356 PR c++/20763
2357 * decl.c (grokdeclarator): Correct attribute handling.
2358
2359 2005-04-05 Mark Mitchell <mark@codesourcery.com>
2360
2361 PR c++/19159
2362 * decl2.c (import_export_decl): Use non-COMDAT external linkage
2363 for virtual tables, typeinfo, etc. that will be emitted in only
2364 one translation unit on systems without weak symbols.
2365
2366 2005-04-04 Mark Mitchell <mark@codesourcery.com>
2367
2368 PR c++/20679
2369 * parser.c (cp_parser_template_name): Fix thinko.
2370
2371 2005-04-04 Nathan Sidwell <nathan@codesourcery.com>
2372
2373 PR c++/20746
2374 * method.c (use_thunk): Protect covariant pointer return
2375 adjustments from NULL pointers.
2376
2377 2005-04-04 Jan Hubicka <jh@suse.cz>
2378
2379 * decl2.c (finish_objects): Revert my previous patch.
2380 (cp_finish_file): Likewise.
2381
2382 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
2383
2384 * pt.c: Fix comment typos.
2385
2386 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
2387
2388 PR c++/20723
2389 * pt.c (more_specialized_fn): Member functions are unordered wrt
2390 non-members. Conversion operators are unordered wrt other
2391 functions.
2392
2393 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
2394
2395 * call.c (add_template_candidates_real): Remove length parameter
2396 from fn_type_unification call.
2397 * class.c (resolve_address_of_overloaded_function): Likewise
2398 * cp-tree.h (fn_type_unification): Remove length parameter.
2399 * pt.c (get_bindings_overload): Remove.
2400 (get_bindings_real): Rename to ...
2401 (get_bindings): ... here. Remove length and strict
2402 parameters. Change return type flag to boolean. Remove original
2403 forwarding function.
2404 (determine_specialization): Adjust get_bindings call.
2405 (fn_type_unification): Remove length parameter. Adjust.
2406 (type_unification_real): Remove length parameter. Adjust.
2407 (resolve_overloaded_unification): Adjust get_bindings call.
2408 (try_one_overload): Simplify confusing cascaded if control flow.
2409 (unify): Remove length paramter from type_unification_real call.
2410 (most_specialized_instantiation): Adjust get_bindings calls.
2411 (most_specialized): Likewise.
2412
2413 2005-03-31 Nathan Sidwell <nathan@codesourcery.com>
2414
2415 PR c++/19203, implement DR 214
2416 * call.c (joust): Use more_specialized_fn.
2417 * cp-tree.h (DEDUCE_ORDER): Remove.
2418 (more_specialized): Replace with ...
2419 (more_specialized_fn): ... this.
2420 * pt.c (maybe_adjust_types_for_deduction): Remove DEDUCE_ORDER
2421 case.
2422 (type_unification_real): Remove DEDUCE_ORDER case.
2423 (more_specialized): Replace with ...
2424 (more_specialized_fn): ... this. Implement DR 214.
2425 (most_specialized_instantiation): Use get_bindings_real directly.
2426
2427 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
2428
2429 PR c++/18644
2430 * call.c (build_new_op): Remove check for -Wsynth.
2431
2432 2005-03-31 Jan Hubicka <jh@suse.cz>
2433
2434 * decl2.c (finish_objects): Mark ctor as needed.
2435 (cp_finish_file): Output variables only in nonunit-at-a-time.
2436
2437 2005-03-29 Richard Henderson <rth@redhat.com>
2438
2439 PR c/20519
2440 * decl.c (cp_complete_array_type): Rename from complete_array_type.
2441 Use the new complete_array_type in c-common.c. Update all callers.
2442 * cp-tree.h (cp_complete_array_type): Update to match.
2443
2444 2005-03-24 Geoffrey Keating <geoffk@apple.com>
2445
2446 * typeck.c (build_static_cast_1): Allow scalar_cast between
2447 any integral, floating, or enumeration type.
2448
2449 2005-03-24 Steven Bosscher <stevenb@suse.de>
2450
2451 * typeck.c (comptypes): First determine if the types are compatible
2452 from a target-independent point of view. Check target attributes
2453 last.
2454
2455 * class.c (build_base_path):
2456 (build_vbase_offset_vtbl_entries):
2457 (add_vcall_offset): Replace fold (buildN (...)) with fold_buildN.
2458 * error.c (dump_expr): Likewise.
2459 * init.c (build_zero_init, expand_cleanup_for_base,
2460 build_vec_delete_1): Likewise.
2461 * mangle.c (write_integer_cst): Likewise.
2462 * method.c (thunk_adjust): Likewise.
2463 * pt.c (convert_nontype_argument, tsubst, unify): Likewise.
2464 * tree.c (cxx_print_statistics, array_type_nelts_total): Likewise.
2465 * typeck.c (build_ptrmemfunc_access_expr,
2466 (get_member_function_from_ptrfunc): Likewise.
2467
2468 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2469
2470 * cp-objcp-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
2471
2472 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
2473
2474 * cp-tree.h (perform_integral_promotions): Remove.
2475 (default_conversion): Add.
2476
2477 2005-03-22 Mark Mitchell <mark@codesourcery.com>
2478
2479 * parser.c (cp_parser_warn_min_max): New function.
2480 (cp_parser_binary_expression): Use it.
2481 (cp_parser_assignment_operator_opt): Likewise.
2482 (cp_parser_operator): Likewise.
2483
2484 2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2485
2486 PR c++/19980
2487 * decl.c (start_preparsed_function): Robustify.
2488
2489 2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2490
2491 PR c++/20499
2492 * parser.c (cp_parser_class_head): Return NULL_TREE when
2493 encountering a redefinition.
2494
2495 2005-03-22 Nathan Sidwell <nathan@codesourcery.com>
2496
2497 PR c++/20465
2498 PR c++/20381
2499 * typeck.c (build_ptrmemfunc): Allow OFFSET_REF when processing a
2500 template.
2501
2502 2005-03-21 Paolo Carlini <pcarlini@suse.de>
2503
2504 PR c++/20461
2505 PR c++/20536
2506 * init.c (emit_mem_initializers): Don't crash on undefined
2507 types.
2508
2509 2005-03-21 Paolo Carlini <pcarlini@suse.de>
2510
2511 PR c++/20147
2512 * semantics.c (finish_stmt_expr_expr): Return immediately
2513 if error_operand_p (expr).
2514
2515 2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
2516
2517 * cp-tree.h (lvalue_or_else, lvalue_p): New.
2518 * typeck.c (lvalue_or_else): New. Call lvalue_error.
2519
2520 2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2521
2522 PR c++/20240
2523 * decl.c (decls_match): Compare context of VAR_DECL.
2524
2525 2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2526
2527 PR c++/20333
2528 * parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
2529 Check the return value of cp_parser_nested_name_specifier.
2530
2531 2005-03-18 Dale Johannesen <dalej@apple.com>
2532
2533 * cp/tree.c (cp_tree_equal): Handle SSA_NAME.
2534
2535 2005-03-18 Paolo Carlini <pcarlini@suse.de>
2536
2537 PR c++/20463
2538 * parser.c (cp_parser_diagnose_invalid_type_name):
2539 Check TYPE_BINFO (current_class_type) before attempting
2540 to emit inform messages.
2541
2542 2005-03-17 Paolo Carlini <pcarlini@suse.de>
2543
2544 PR c++/19966
2545 * cp-tree.h (grok_op_properties): Change return type to void.
2546 * decl.c (grok_op_properties): Return early - don't check the
2547 arity - in case of a static member or an operator that cannot
2548 be non-member; tidy a bit.
2549
2550 2005-03-17 Nathan Sidwell <nathan@codesourcery.com>
2551
2552 PR c++/20186
2553 * pt.c (contains_dependent_cast_p): Remove.
2554 (fold_non_dependent_expr): Don't use it.
2555 (value_dependent_expression_p): Use a switch statement.
2556 reference_exprs can be dependent.
2557
2558 2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2559
2560 PR c++/4403
2561 PR c++/9783, DR433
2562 * name-lookup.c (pushtag): Skip template parameter scope when
2563 scope is ts_global. Don't push tag into template parameter
2564 scope.
2565 * pt.c (instantiate_class_template): Reorder friend class
2566 template substitution to handle non-dependent friend class
2567 that hasn't been previously declared.
2568
2569 2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2570
2571 Friend class name lookup 5/n
2572 PR c++/1016
2573 * cp-tree.h (pushtag): Adjust declaration.
2574 * decl.c (lookup_and_check_tag): Call lookup_type_scope if
2575 lookup_name fails.
2576 (xref_tag): Adjust call to pushtag. Make hidden class visible.
2577 (start_enum): Adjust call to pushtag.
2578 * name-lookup.c (ambiguous_decl): Ignore hidden names.
2579 (qualify_lookup): Change return type to bool.
2580 (hidden_name_p): New function.
2581 (lookup_namespace_name, unqualified_namespace_lookup,
2582 lookup_name_real): Use it.
2583 (lookup_type_scope): Update comments.
2584 (maybe_process_template_type_declaration): Change parameter name
2585 from globalize to is_friend.
2586 (pushtag): Change globalize parameter of type int to tag_scope.
2587 Hide name if introduced by friend declaration.
2588 * name-lookup.h (hidden_name_p): Add declaration.
2589 * parser.c (cp_parser_lookup_name): Don't deal with hidden name
2590 here.
2591 * pt.c (push_template_decl_real): Make hidden class template
2592 visible.
2593 (lookup_template_class, instantiate_class_template): Adjust call
2594 to pushtag.
2595 * semantics.c (begin_class_definition): Likewise.
2596 * rtti.c (init_rtti_processing, build_dynamic_cast_1,
2597 tinfo_base_init, emit_support_tinfos): Use ts_current instead of
2598 ts_global.
2599
2600 2005-03-13 Mark Mitchell <mark@codesourcery.com>
2601
2602 PR c++/20157
2603 * pt.c (determine_specialization): Reject non-specializations.
2604
2605 2005-03-11 Per Bothner <per@bothner.com>
2606
2607 * cp-tree.h (struct cp_declarator): New id_loc field.
2608 * cp/parser.c (cp_lexer_get_preprocessor_token): Set cp_token's
2609 location using c_lex_with_flags, instead of input_location.
2610 (cp_parser_direct_declarator): Set declarator's id_loc from
2611 cp_token's id_loc.
2612
2613 2005-03-10 Jakub Jelinek <jakub@redhat.com>
2614
2615 PR c++/18384, c++/18327
2616 * decl.c (reshape_init_array): Use UHWI type for max_index_cst
2617 and index. Convert max_index to size_type_node if it isn't
2618 host_integerp (, 1).
2619
2620 2005-03-09 Mark Mitchell <mark@codesourcery.com>
2621
2622 PR c++/20208
2623 * pt.c (tsubst_decl): Apply array-to-pointer and
2624 function-to-pointer conversions to function arguments.
2625 (regenerate_decl_from_template): Likewise.
2626
2627 2005-03-09 Paolo Carlini <pcarlini@suse.de>
2628
2629 PR c++/16859
2630 * decl.c (complete_array_type): In pedantic mode, return
2631 3 for an empty initializer list as the initializer for an
2632 array of unknown bound (8.5.1/4).
2633 (maybe_deduce_size_from_array_init): Fix final test to use
2634 the above.
2635
2636 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
2637
2638 PR c++/20186
2639 * pt.c (contains_dependent_cast_p): New.
2640 (fold_non_dependent_expr): Call it.
2641
2642 2005-03-08 Mark Mitchell <mark@codesourcery.com>
2643
2644 PR c++/20142
2645 * cp-tree.h (target_type): Remove.
2646 * decl.c (layout_var_decl): Remove #if 0'd code.
2647 (cp_finish_decl): Remove dead code.
2648 * init.c (build_vec_init): When determining whether or not the
2649 element type has an asignment operator, look through all array
2650 dimensions.
2651 * typeck.c (target_type): Remove.
2652
2653 2005-03-07 Mark Mitchell <mark@codesourcery.com>
2654
2655 * class.c (finish_struct_1): Do not warn about non-virtual
2656 destructors in Java classes.
2657
2658 2005-03-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2659
2660 PR c++/19311
2661 * init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
2662 * pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
2663 for OFFSET_TYPE.
2664 * typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
2665 Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
2666 (build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
2667 template.
2668
2669 2005-03-02 Alexandre Oliva <aoliva@redhat.com>
2670
2671 * name-lookup.c (push_overloaded_decl): Don't error if the new
2672 decl matches the old one.
2673 * decl.c (redeclaration_error_message): Likewise.
2674
2675 2005-03-01 Per Bothner <per@bothner.com>
2676
2677 * decl.c (finish_function): Use SET_EXPR_LOCATION instead of
2678 unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
2679
2680 2005-03-01 Nathan Sidwell <nathan@codesourcery.com>
2681
2682 PR c++/20232
2683 * class.c (update_vtable_entry_for_fn): Don't crash on invalid
2684 covariancy.
2685
2686 * cp-tree.g (THUNK_TARGET): Expand comment.
2687 * method.c (use_thunk): Make sure we also use the target, if that
2688 is a thunk.
2689
2690 2005-02-27 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR c++/20206
2693 * decl.c (cxx_comdat_group): Put thunks for
2694 TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
2695 comdat group as the thunk target.
2696
2697 2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2698
2699 * call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
2700 parser.c: Fix comment typo(s).
2701
2702 2005-02-24 Jakub Jelinek <jakub@redhat.com>
2703
2704 PR c++/20175
2705 * decl.c (reshape_init): Don't warn about missing braces if STRING_CST
2706 initializes a char/wchar_t array.
2707
2708 2005-02-23 Mark Mitchell <mark@codesourcery.com>
2709
2710 PR c++/19878
2711 * decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
2712 with internal linkage.
2713
2714 2005-02-23 Alexandre Oliva <aoliva@redhat.com>
2715
2716 * decl.c (grokvardecl): Don't exempt anonymous types from having
2717 linkage for variables that have linkage other than "C".
2718
2719 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
2720
2721 * cp-objcp-common.h, error.c: Update copyright.
2722
2723 2005-02-22 Mark Mitchell <mark@codesourcery.com>
2724
2725 PR c++/20073
2726 * decl.c (start_decl_1): Don't clear TREE_READONLY.
2727 (cp_finish_decl): Likewise.
2728 (complete_vars): Call cp_apply_type_quals_to_decl.
2729 * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
2730 cases where that's not valid.
2731
2732 PR c++/19991
2733 * init.c (integral_constant_value): Iterate if the value of a decl
2734 is itself a constant.
2735
2736 PR c++/20152
2737 * parser.c (cp_parser_class_head): Check for redefintions here.
2738 * semantics.c (begin_class_definition): Not here.
2739
2740 PR c++/20153
2741 * decl2.c (build_anon_union_vars): Add type parameter.
2742 (finish_anon_union): Pass it.
2743
2744 PR c++/20148
2745 * error.c (dump_expr): Do not print the body of a BIND_EXPR.
2746 Handle STATEMENT_LIST.
2747
2748 PR c++/19883
2749 * parser.c (cp_parser_direct_declarator): Always complain about
2750 non-constant array bounds when in a function scope.
2751 * semantics.c (finish_id_expression): Do not mark dependent names
2752 as non-constant.
2753
2754 2005-02-21 Douglas Gregor <dgregor@cs.indiana.edu>
2755
2756 PR c++/19076
2757 PR c++/6628
2758 * cp-tree.h (cp_apply_type_quals_to_decl): Declared.
2759 * decl.c (grokdeclarator): Pedwarn about qualifying a function
2760 type.
2761 Add qualifiers when declaring a typedef of a function type.
2762 Member function pointers pick up the qualifiers of the typedef
2763 used to declare them.
2764 Don't complain about creating cv-qualified function types.
2765 Complain about qualified function typedefs that are used to
2766 declare non-static member functions or free functions.
2767 Use cp_apply_type_quals_to_decl.
2768 (start_preparsed_function): Use cp_apply_type_quals_to_decl.
2769 (grokclassfn): Use cp_apply_type_quals_to_decl.
2770 * error.c (dump_type_suffix): Print qualifiers for function
2771 types.
2772 * pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
2773 (tsubst): When substituting a function type into a member
2774 pointer type, pass along the qualifiers.
2775 (unify): Unify member pointers to member function pointers.
2776 * tree.c (cp_build_qualified_type_real): Function types may be
2777 qualified. This includes restrict qualifiers.
2778 * typeck.c (cp_apply_type_quals_to_decl): New function to replace
2779 use of c_apply_type_quals_to_decl. Drops qualifiers that are being
2780 added to function types.
2781
2782 2005-02-20 Zack Weinberg <zack@codesourcery.com>
2783
2784 PR 18785
2785 * cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
2786 c_common_to_target_charset. Delete bogus comment.
2787
2788 2005-02-18 Richard Henderson <rth@redhat.com>
2789
2790 PR libstdc++/10606
2791 * except.c (do_get_exception_ptr): New.
2792 (expand_start_catch_block): Use it.
2793
2794 2005-02-19 Jakub Jelinek <jakub@redhat.com>
2795
2796 * decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
2797 if type is not error_mark_node.
2798
2799 2005-01-20 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2800
2801 PR c++/19508
2802 * decl2.c (grokfield): Do not apply attributes to template parameters
2803 as they are ignored by tsubst anyway.
2804
2805 2005-02-18 Jakub Jelinek <jakub@redhat.com>
2806
2807 PR c++/19813
2808 * decl.c (start_decl_1): Clear TREE_READONLY flag if
2809 its type has TYPE_NEEDS_CONSTRUCTING.
2810 (complete_vars): Likewise.
2811
2812 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
2813
2814 PR c++/20028
2815 * class.c (finish_struct): Initialize TYPE_SIZE_UNIT of a
2816 template along with TYPE_SIZE.
2817
2818 PR c++/20022
2819 * semantics.c (perform_deferred_access_checks): Use
2820 get_deferred_access_checks to get the top of the stack.
2821
2822 2005-02-15 Alexandre Oliva <aoliva@redhat.com>
2823
2824 PR c++/17788
2825 * class.c (add_implicitly_declared_members, check_field_decl)
2826 (check_field_decls, check_bases): Remove arguments, tests and
2827 assignments of cant_have_default_ctor-related variables.
2828
2829 2005-02-15 Alexandre Oliva <aoliva@redhat.com>
2830
2831 * decl2.c (mark_used): Set the source location of the used decl to
2832 the current input location here...
2833 * method.c (synthesize_method): ... not here. Set input_location
2834 from the decl instead.
2835
2836 2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
2837
2838 PR c++/19608
2839 * parser.c (cp_parser_late_parsing_for_member): Use
2840 current_function_decl as scope to push to and from.
2841
2842 PR c++/19884
2843 * pt.c (check_explicit_specialization): Make sure namespace
2844 binding lookup found an overloaded function.
2845 (lookup_template_function): Just assert FNS is an overloaded
2846 function.
2847
2848 PR c++/19895
2849 * decl.c (grokdeclarator): Check for error mark node in ptrmem
2850 construction.
2851
2852 2005-02-14 Alexandre Oliva <aoliva@redhat.com>
2853
2854 PR c++/17816
2855 * decl.c (redeclaration_error_message): Report redefinition of
2856 pure virtual function.
2857
2858 2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
2859
2860 PR c++/19891
2861 * class.c (build_simple_base_path): Build the component_ref
2862 directly.
2863 (update_vtable_entry_for_fn): Walk the covariant's binfo chain
2864 rather than using lookup_base.
2865 * search.c (dfs_walk_once): Add non-recursive assert check.
2866 * typeck.c (build_class_member_access_expr): It is possible for
2867 the member type to be both const and volatile.
2868
2869 2005-02-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2870
2871 PR c++/14479
2872 PR c++/19487
2873 * pt.c (maybe_check_template_type): Remove.
2874 * cp-tree.h (maybe_check_template_type): Remove prototype.
2875 * name-lookup.c (maybe_process_template_type_declaration): Don't
2876 use maybe_check_template_type.
2877
2878 2005-02-11 Richard Henderson <rth@redhat.com>
2879
2880 PR c++/19632
2881 * pt.c (get_mostly_instantiated_function_type): Save and restore
2882 flag_access_control instead of push/pop_access_scope.
2883
2884 2005-02-10 Mark Mitchell <mark@codesourcery.com>
2885
2886 PR c++/19755
2887 * decl.c (reshape_init): Issue warnings about missing braces.
2888
2889 2005-02-11 Kazu Hirata <kazu@cs.umass.edu>
2890
2891 * cp-tree.def, except.c, ptree.c: Update copyright.
2892
2893 2005-02-09 Mark Mitchell <mark@codesourcery.com>
2894
2895 PR c++/19811
2896 * call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
2897 attempting name lookup.
2898
2899 * parser.c (cp_parser_unqualified_id): Initialize type_decl.
2900
2901 PR c++/19787
2902 * call.c (initialize_reference): Robustify.
2903
2904 PR ++/19732
2905 * decl.c (grokdeclarator): Check for invalid use of destructor
2906 names.
2907
2908 PR c++/19762
2909 * parser.c (cp_parser_unqualified_id): Avoid creating destructor
2910 names with invalid types.
2911
2912 PR c++/19826
2913 * parser.c (cp_parser_direct_declarator): Allow type-dependent
2914 expressions as array bounds.
2915
2916 PR c++/19739
2917 * parser.c (cp_parser_attributes_list): Allow empty lists.
2918
2919 2005-02-08 Mark Mitchell <mark@codesourcery.com>
2920
2921 PR c++/19733
2922 * class.c (add_method): Don't set TYPE_HAS_DESTRUCTOR.
2923 (check_bases): Give warnings about a base class with a
2924 non-virtual destructor, even if it is implicit.
2925 (finish_struct_bits): Don't copy TYPE_HAS_DESTRUCTOR.
2926 (maybe_warn_about_overly_private_class): Don't use
2927 TYPE_HAS_DESTRUCTOR.
2928 (finish_struct_methods): Don't set TYPE_HAS_DESTRUCTOR.
2929 (check_for_override): Give it external linkage.
2930 (add_implicitly_declared_members): Generate destructors lazily.
2931 (check_field_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
2932 TYPE_HAS_DESTRUCTOR.
2933 (check_bases_and_members): Call check_methods before
2934 check_field_decls.
2935 (check_bases_and_members): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
2936 TYPE_HAS_DESTRUCTOR.
2937 (finish_struct_1): Do not use TYPE_HAS_DESTRUCTOR.
2938 * cp-tree.def (PSEUDO_DTOR_EXPR): Document.
2939 * cp-tree.h (TYPE_HAS_DESTRUCTOR): Remove.
2940 (lang_type_class): Add lazy_destructor.
2941 (CLASSTYPE_LAZY_DESTRUCTOR): New macro.
2942 (CLASSTYPE_DESTRUCTORS): Robustify.
2943 (TYPE_HAS_DESTRUCTOR): Remove.
2944 (check_for_override): Declare.
2945 (build_vbase_delete): Remove.
2946 * cvt.c (convert_to_void): Issue errors about pseudo-destructor
2947 expressions.
2948 * decl.c (cxx_maybe_build_cleanup): Remove dead code.
2949 * except.c (dtor_nothrow): Lazily create destructors if necessary.
2950 (build_throw): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
2951 * init.c (build_delete): Lazily create destructors, if necessary.
2952 (build_vbase_delete): Remove.
2953 * method.c (locate_dtor): Simplify.
2954 (implicitly_declare_fn): Add support for destructors.
2955 * parser.c (cp_parser_lookup_name): Lazily create destructors, if
2956 necessary.
2957 * pt.c (check_explicit_specialization): Don't use
2958 TYPE_HAS_DESTRUCTOR.
2959 (instantiate_class_template): Likewise.
2960 * ptree.c (cxx_print_type): Don't print TYPE_HAS_DESTRUCTOR.
2961 * rtti.c (emit_support_tinfos): Robustify.
2962 * search.c (lookup_fnfields_1): Lazily create destructors.
2963 * typeck.c (build_class_member_access_expr): Remove
2964 PSEUDO_DTOR_EXPR handling.
2965 (lookup_destructor): Likewise.
2966
2967 2005-02-08 Kazu Hirata <kazu@cs.umass.edu>
2968
2969 * cxx-pretty-print.c, cxx-pretty-print.h, decl.h: Update
2970 copyright.
2971
2972 2005-02-07 Mark Mitchell <mark@codesourcery.com>
2973
2974 * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
2975 on boolean variables.
2976 (cp_lexer_stop_debugging): Likewise.
2977
2978 2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2979
2980 PR c++/17401
2981 * parser.c (cp_parser_pure_specifier): Emit a specific error
2982 message with an invalid pure specifier.
2983 * decl2.c (grok_function_init): Remove.
2984 (grokfield): An initializer for a method is a always a pure
2985 specifier.
2986
2987 2005-02-02 Matt Austern <austern@apple.com>
2988
2989 PR c++/19628
2990 * cp-tree.h (builtin_valid_in_constant_expr_p): Declare.
2991 * parser.c (cp_parser_postfix_expression): Accept function call in
2992 constant expression if builtin_valid_in_constant_expr_p is true
2993 for that function.
2994 * pt.c (value_dependent_expression_p): Handle CALL_EXPRs properly.
2995 * semantics.c (finish_id_expression): Accept function call in constant
2996 expression if builtin_valid_in_constant_expr_p is true for that
2997 function.
2998 * tree.c (builtin_valid_in_constant_expr_p): New.
2999
3000 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3001
3002 PR c++/17413
3003 * pt.c (check_instantiated_args): Improve error message.
3004 Fix logic when to print its second part.
3005
3006 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3007
3008 * cp-tree.h (complete_type_or_else): Remove macro.
3009 (complete_type_or_diagnostic): Rename to complete_type_or_else
3010 and remove last argument.
3011 * typeck.c (complete_type_or_diagnostic): Rename to
3012 complete_type_or_else and remove last argument.
3013
3014 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3015
3016 * cp-tree.h (commonparms): Remove prototype.
3017 (convert_arguments): Likewise.
3018 (PFN_FROM_PTRMEMFUNC): Remove.
3019 * typeck.c (commonparms): Make static.
3020 (convert_arguments): Add prototype. Make static.
3021 (PFN_FROM_PTRMEMFUNC): Replace by pfn_from_ptrmemfunc.
3022
3023 2005-01-31 Mark Mitchell <mark@codesourcery.com>
3024
3025 * parser.c (cp_parser_primary_expression): Don't complain about
3026 floating-point literals in integral constant expressions when
3027 !pedantic.
3028
3029 2005-02-01 Alexandre Oliva <aoliva@redhat.com>
3030
3031 * parser.c (cp_parser_template_id): Revert comment patch too.
3032
3033 PR c++/18757
3034 PR c++/19366
3035 PR c++/19499
3036 * parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
3037 Issue an error when creating the template id.
3038 * pt.c (fn_type_unification): Return early if the explicit
3039 template arg list is an error_mark_node.
3040
3041 2005-01-31 Mark Mitchell <mark@codesourcery.com>
3042
3043 * decl.c (build_enumerator): Do not issue duplicate error messages
3044 about invalid enumeration constants.
3045 * parser.c (cp_parser_non_integral_constant_expression): Always
3046 set parser->non_integral_constant_expression_p.
3047 (cp_parser_primary_expression): Add cast_p parameter. Issue
3048 errors about invalid uses of floating-point literals in
3049 cast-expressions.
3050 (cp_parser_postfix_expression): Add cast_p parameter.
3051 (cp_parser_open_square_expression): Pass it.
3052 (cp_parser_parenthesized_expression_list): Add cast_p parameter.
3053 (cp_parser_unary_expression): Likewise.
3054 (cp_parser_new_placement): Pass it.
3055 (cp_parser_direct_new_declarator): Likewise.
3056 (cp_parser_new_initializer): Likewise.
3057 (cp_parser_cast_expression): Add cast_p parameter.
3058 (cp_parser_binary_expression): Likewise.
3059 (cp_parser_question_colon_clause): Likewise.
3060 (cp_parser_assignment_expression): Likewise.
3061 (cp_parser_expression): Likewise.
3062 (cp_parser_constant_expression): If an integral constant
3063 expression is invalid, return error_mark_node.
3064 (cp_parser_expression_statement): Pass cast_p.
3065 (cp_parser_condition): Likewise.
3066 (cp_parser_iteration_statement): Likewise.
3067 (cp_parser_jump_statement): Likewise.
3068 (cp_parser_mem_initializer): Likewise.
3069 (cp_parser_template_argument): Likewise.
3070 (cp_parser_parameter_declaration): Likewise.
3071 (cp_parser_initializer): Likewise.
3072 (cp_parser_throw_expression): Likewise.
3073 (cp_parser_attribute_list): Likewise.
3074 (cp_parser_simple_cast_expression): Likewise.
3075 (cp_parser_functional_cast): Likewise.
3076 (cp_parser_late_parsing_default_args): Likewise.
3077 (cp_parser_sizeof_operand): Save/restore
3078 non_integral_constant_expression_p.
3079
3080 2005-01-31 Mike Stump <mrs@apple.com>
3081
3082 * parser.c (cp_lexer_new_main): Get the first token, first, before
3083 doing anything.
3084
3085 2005-01-31 Mark Mitchell <mark@codesourcery.com>
3086
3087 * decl.c (start_decl): Add missing parentheses.
3088
3089 2005-01-30 Mark Mitchell <mark@codesourcery.com>
3090
3091 PR c++/19555
3092 * cp-tree.h (DECL_USE_TEMPLATE): Expand documentation.
3093 * decl.c (duplicate_decls): Do not discard
3094 DECL_IMPLICIT_INSTANTIATION when merging declarations.
3095 (start_decl): Do not SET_DECL_TEMPLATE_SPECIALIZATION for
3096 variables that do not have DECL_USE_TEMPLATE.
3097
3098 PR c++/19395
3099 * decl.c (grokdeclarator): Refactor code so that qualified names
3100 are never allowed as the declarator in a typedef.
3101
3102 PR c++/19367
3103 * name-lookup.c (do_nonmember_using_decl): Avoid overloading
3104 builtin declarations.
3105
3106 PR c++/19457
3107 * call.c (convert_like_real): Inline call to
3108 dubious_conversion_warnings here.
3109 * cp-tree.h (dubious_conversion_warnings): Remove.
3110 * semantics.c (finish_unary_op_expr): Copy INTEGER_CSTs before
3111 setting TREE_NEGATED_INT.
3112 * typeck.c (dubious_conversion_warnings): Remove.
3113
3114 PR c++/19349
3115 * name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd
3116 memory.
3117
3118 2005-01-28 Mark Mitchell <mark@codesourcery.com>
3119
3120 PR c++/19253
3121 * parser.c (cp_parser_diagnose_invalid_type_name): Commit to
3122 tentative parses.
3123
3124 PR c++/19667
3125 * pt.c (redeclare_class_template): Robustify.
3126
3127 2005-01-27 Steven Bosscher <stevenb@suse.de>
3128
3129 * decl.c (finish_case_label): Use SWITCH_STMT accessor macros
3130 instead of SWITCH_EXPR ones.
3131 * pt.c (tsubst_expr): Likewise.
3132 * semantics.c (begin_switch_stmt, finish_switch_cond,
3133 finish_switch_stmt): Likewise.
3134
3135 2005-01-26 J"orn Rennecke <joern.rennecke@st.com>
3136
3137 PR c++/18370
3138 * parser.c (cp_parser_initializer_clause): Initialize *non_constant_p.
3139
3140 2005-01-25 Andrew Pinski <pinskia@physics.uc.edu>
3141
3142 * class.c (abort_fndecl_addr): New variable.
3143 (build_vtbl_initializer): If we have a pure virtual function
3144 share the abort function's address.
3145 Include gt-cp-class.h at the end.
3146 * config-lang.in (gtfiles): Add cp/class.c.
3147
3148 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3149
3150 * cxx-pretty-print.c (pp_cxx_statement): Add prototype. Make static.
3151 (pp_cxx_function_definition): Make static.
3152 * cxx-pretty-print.h (pp_cxx_statement): Remove prototype.
3153 (pp_cxx_function_definition): Likewise.
3154
3155 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3156
3157 * name-lookup.c (print_binding_level): Make static.
3158 (constructor_name_full): Make static inline.
3159 (current_decl_namespace): Make static.
3160 * name-lookup.h (constructor_name_full): Remove prototype.
3161 (print_binding_level): Likewise.
3162 (current_decl_namespace): Likewise.
3163
3164 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3165
3166 * decl.h (debug_bindings_indentation): Remove.
3167
3168 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
3169
3170 * typeck.c: Fix a comment typo.
3171
3172 2005-01-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3173
3174 PR c++/19208
3175 * pt.c (fold_decl_constant_value): Always call fold_non_dependent_expr
3176 at least once.
3177 (tsubst): Use fold_decl_constant_value in place of a bare call to
3178 integral_constant_value.
3179
3180 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
3181
3182 * typeck.c (more_qualified_p): Remove.
3183 * cp-tree.h: Remove the corresponding prototype.
3184
3185 2005-01-19 Matt Austern <austern@apple.com>
3186
3187 * typeck.c (comptypes): Handle return code from objc_comptypes
3188 correctly.
3189
3190 2005-01-19 Kazu Hirata <kazu@cs.umass.edu>
3191
3192 * cp-tree.h, name-lookup.h: Remove unused prototypes.
3193
3194 2005-01-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3195
3196 PR c++/19375
3197 * semantics.c (finish_id_expression): Disable access checking for
3198 already lookuped FIELD_DECL.
3199
3200 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
3201
3202 * decl.c (delete_block): Remove.
3203 * cp-tree.h: Remove the corresponding prototype.
3204
3205 * decl.c (vtable_decl_p, vtype_decl_p, walk_globals_data,
3206 walk_vtables_r, walk_vtables, walk_globals_r, walk_globals):
3207 Remove.
3208 * cp-tree.h: Remove the corresponding prototypes.
3209
3210 * tree.c (count_functions, bound_pmf_p, cp_is_overload_p,
3211 cp_update_decl_after_saving, name_p): Remove.
3212 * cp-tree.h: Remove the corresponding prototypes.
3213
3214 2005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
3215
3216 PR c/19472
3217 * semantics.c (finish_asm_stmt): Strip nops off
3218 input memory operands.
3219
3220 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
3221
3222 * Make-lang.in, call.c, cvt.c, init.c, rtti.c, tree.c,
3223 typeck2.c: Update copyright.
3224
3225 2005-01-16 Kazu Hirata <kazu@cs.umass.edu>
3226
3227 * class.c (get_enclosing_class): Remove.
3228 * cp-tree.h: Remove the corresponding prototypes.
3229
3230 * cvt.c (convert_lvalue): Remove.
3231 * cp-tree.h: Remove the corresponding prototype.
3232
3233 * pt.c (tinst_for_decl): Remove.
3234 * cp-tree.h: Remove the corresponding prototypes.
3235
3236 * tree.c (hash_chainon): Remove.
3237 * cp-tree.h: Remove the corresponding prototypes.
3238
3239 2005-01-15 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR c++/19263
3242 * typeck2.c (split_nonconstant_init_1) <case VECTOR_TYPE>: Put a copy
3243 of CONSTRUCTOR's node into MODIFY_EXPR, as the original is modified.
3244
3245 2005-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246
3247 * Make-lang.in (cp-warn): Don't append $(WERROR).
3248
3249 2005-01-10 Kazu Hirata <kazu@cs.umass.edu>
3250
3251 * cp-tree.h: Fix a comment typo.
3252
3253 2005-01-07 Nathan Sidwell <nathan@codesourcery.com>
3254
3255 PR c++/19298
3256 * pt.c (tsubst_qualified_id): Call convert_from_reference.
3257
3258 2005-01-06 Mark Mitchell <mark@codesourcery.com>
3259
3260 PR c++/19244
3261 * class.c (add_implicitly_declared_members): Remove dead code.
3262 * decl.c (grokfndecl): Add sfk parameter. Use it do set
3263 DECL_CONSTRUCTOR_P.
3264 (grokdeclarator): Adjust calls to grokfndecl.
3265 * method.c (implicitly_declare_fn): Improve documentation.
3266 * parser.c (cp_parser_direct_declarator): Do not consider a
3267 function to be a constructor if the containing class was
3268 originally anonymous.
3269
3270 2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3271
3272 PR c++/17154
3273 * search.c (lookup_field_1): Handle using declaration in
3274 class template partial specialization.
3275
3276 2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3277
3278 PR c++/19258
3279 * pt.c (push_access_scope): Handle friend defined in class.
3280 (pop_access_scope): Likewise.
3281
3282 2005-01-06 Nathan Sidwell <nathan@codesourcery.com>
3283
3284 PR c++/19270
3285 * pt.c (tsubst_copy) <ARRAY_REF case>: Handle separately.
3286 (tsubst_copy_and_build) <ARRAY_REF case>: Remove obsolete
3287 array-new handling code. Use build_x_binary_op.
3288
3289 2005-01-05 Nathan Sidwell <nathan@codesourcery.com>
3290
3291 PR c++/19030
3292 * cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
3293 * name-lookup.h (push_scope): Return pushed scope, not flag.
3294 * name-lookup.c (push_scope): Return scope that should be popped,
3295 not a flag.
3296 * decl.c (start_decl): Adjust.
3297 (grokfndecl): Adjust scope push and pop.
3298 * decl2.c (check_classfn): Likewise.
3299 * parser.c (cp_parser_condition, cp_parser_conversion_function_id,
3300 cp_parser_init_declarator, cp_parser_direct_declarator,
3301 cp_parser_class_specifier, cp_parser_class_head,
3302 cp_parser_lookup_name,
3303 cp_parser_constructor_declarator_p): Likewise.
3304 * pt.c (instantiate_class_template,
3305 resolve_typename_type): Likewise.
3306
3307 2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aaachen.de>
3308
3309 PR c++/14136
3310 * parser.c (cp_parser_unqualified_id): Do not issue error message
3311 for typedef-name as destructor declarator when performing an
3312 uncommitted tentative parse.
3313
3314 2005-01-01 Steven Bosscher <stevenb@suse.de>
3315
3316 PR middle-end/17544
3317 * decl.c (finish_function): Fix comment. Annotate the compiler
3318 generated return with the current file name and line 0.
3319