re PR c++/23099 (ICE in build_simple_base_path, at cp/class.c:460)
[gcc.git] / gcc / cp / ChangeLog
1 2005-08-28 Mark Mitchell <mark@codesourcery.com>
2
3 PR c++/23099
4 * cp-tree.h (saved_scope): Add skip_evaluation.
5 * decl.c (start_decl): Use DECL_INITIALIZED_IN_CLASS_P, not
6 DECL_INITIAL, to determine whether or not a static data member was
7 initialized in the class-specifier.
8 (cp_finish_decl): Add comment.
9 * init.c (integral_constant_value): Subtitute into the
10 initializers for static data members in templates.
11 * name-lookup.c (push_to_top_level): Save skip_evaluation.
12 (pop_from_top_level): Restore it.
13 * pt.c (instantiate_class_template): Do not substitute into the
14 intializers of static data members when instantiating a class.
15 (regenerate_decl_from_template): Simplify.
16 (instantiate_decl): Tidy. Substitute into the initializer for a
17 static data member even when the definition of the data member is
18 not available.
19
20 2005-08-26 Mark Mitchell <mark@codesourcery.com>
21
22 PR c++/19004
23 * pt.c (uses_template_parms): Handle IDENTIFIER_NODE.
24 (type_dependent_expression_p): Allow BASELINKs whose associated
25 functions are simply a FUNCTION_DECL.
26
27 PR c++/23491
28 * cp-tree.h (build_vec_init): Adjust prototype.
29 * init.c (perform_member_init): Adjust call to build_vec_init.
30 (build_aggr_init): Likewise.
31 (build_new_1): Do not call build_default_init for array types.
32 (build_vec_init): Add explicit_default_init_p parameter. Perform
33 default initialization of vector elements when set.
34 * typeck.c (build_modify_expr): Adjust call to build_vec_init.
35
36 2005-08-25 Nathan Sidwell <nathan@codesourcery.com>
37
38 PR c++/20817
39 * typeck.c (build_x_unary_op): Make sure OFFSET_REF is not for a
40 ->*.
41
42 2005-08-24 Nathan Sidwell <nathan@codesourcery.com>
43
44 PR c++/22454
45 * parser.c (cp_lexer_peek_nth_token): Relax assert.
46
47 2005-08-23 Nathan Sidwell <nathan@codesourcery.com>
48
49 PR c++/23044
50 * pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
51
52 2005-08-22 James E Wilson <wilson@specifix.com>
53
54 PR tree-optimization/23426
55 * decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
56 array size check.
57
58 2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
59
60 PR c++/22233
61 * pt.c (push_template_decl_real): Return error_mark_node if the
62 number of template parameters does not match previous definition.
63
64 2005-08-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
65
66 PR c++/23089
67 * decl.c (require_complete_types_for_parms): Mark incomplete types
68 as invalid.
69
70 2005-08-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
71
72 * parser.c (cp_parser_nth_token_starts_template_argument_list_p):
73 Fix typo in leading comment.
74
75 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
76
77 * name-lookup.c, ptree.c: Delete HOST_PTR_PRINTF.
78
79 2005-08-15 Fariborz Jahanian <fjahanian@apple.com>
80
81 * cp-tree.h (can_convert_arg, fn_type_unification): New argument.
82 * call.c (add_template_candidate_real): Pass down 'flags' to
83 fn_type_unification.
84 (can_convert_arg): New 'flags' argument. Pass it to call to
85 implicit_conversion instead of LOOKUP_NORMAL.
86 (can_convert): Add LOOKUP_NORMAL to call to can_convert_arg.
87 * class.c (resolve_address_of_overloaded_function): Ditto.
88 (resolve_address_of_overloaded_function): Ditto.
89 * decl.c (reshape_init, check_default_argument): Ditto.
90 * typeck.c (build_ptrmemfunc): Ditto.
91 * pt.c (type_unification_real): Add 'flags' argument.
92 (fn_type_unification): Pass 'flags' to type_unification_real.
93 (type_unification_real): Pass new 'flags' argument to call to
94 can_convert_arg.
95
96 2005-08-12 Giovanni Bajo <giovannibajo@libero.it>
97 Nathan Sidwell <nathan@codesourcery.com>
98
99 PR c++/21799
100 PR c++/8271
101 * pt.c (unify) <METHOD_TYPE>: Check this-pointer cv-qualifiers
102 explicitly.
103
104 2005-08-12 Nathan Sidwell <nathan@codesourcery.com>
105
106 PR c++/21799
107 Revert my 2005-07-08 patch
108 * pt.c (type_unification_real): Remove is_method_argument and
109 assoicated checks.
110 (fn_type_unification, unify): Adjust type_unification_real calls.
111
112 2005-08-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
113
114 PR c++/23266
115 * decl2.c (grokfield): Check that method is not static before
116 marking it as pure.
117
118 2005-08-11 Nathan Sidwell <nathan@codesourcery.com>
119
120 PR c++/23219
121 * name-lookup.c (pushtag): Process the template type before
122 altering the identifier lookup fields. Remove unreachable code
123 creating an empty stub decl.
124
125 2005-08-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
126
127 PR c++/20646
128 * decl.c (grokdeclarator): Reset storage_class after error.
129
130 2005-08-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
131
132 PR c++/22508
133 * init.c (build_new_1): Check for empty candidate list.
134
135 2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
136
137 PR c++/23191
138 * pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node
139 before calling build_exception_variant.
140
141 2005-08-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
142
143 PR c++/19498
144 * pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
145 if substitution of template args did not succeed.
146
147 2005-08-06 Michael Matz <matz@suse.de>
148
149 * method.c (use_thunk): Call init_insn_lengths.
150
151 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
152
153 PR c++/22514
154 * name-lookup.c (cp_emit_debug_info_for_using): Do nothing if
155 sorrycount or errorcount are nonzero.
156
157 2005-08-05 Mark Mitchell <mark@codesourcery.com>
158
159 * name-lookup.c (pushtag): Remove accidental commit from:
160 2004-12-21 Mark Mitchell <mark@codesourcery.com>
161 PR c++/19063
162 * decl.c (grokdeclarator): Return error_mark_node, not
163 void_type_node, to indicate errors.
164 * parser.c (cp_parser_template_parameter_list): Robustify.
165 (cp_parser_template_parameter): Likewise.
166
167 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
168
169 * class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
170 Fix comment typos.
171
172 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
173
174 * method.c: Fix a comment typo.
175
176 2005-07-28 Mark Mitchell <mark@codesourcery.com>
177
178 PR c++/22545
179 * call.c (add_builtin_candidate): Adjust for changes in
180 representation of pointer-to-member types.
181
182 2005-07-28 Mike Stump <mrs@apple.com>
183
184 * pt.c (check_explicit_specialization): Add visibility logic.
185 (lookup_template_class): Likewise.
186 (instantiate_class_template): Likewise.
187
188 2005-07-27 Devang Patel <dpatel@apple.com>
189
190 * name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit.
191
192 2005-07-25 Ian Lance Taylor <ian@airs.com>
193
194 * ptree.c (cxx_print_identifier): Print a leading space if the
195 indent level is 0.
196
197 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
198
199 * call.c (convert_for_arg_passing): Check function pointers when
200 -Wmissing-format-attribute is activated.
201 * typeck.c (convert_for_assignment): Likewise.
202
203 2005-07-22 Manfred Hollstein <mh@suse.com>
204
205 * parser.c (cp_parser_declaration): Fix unitialised warnings.
206
207 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
208
209 * class.c (build_base_path): Fix typo.
210
211 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
212
213 PR C++/22358
214 * class.c (build_base_path): Convert BINFO_OFFSET to the correct type.
215
216 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
217
218 * call.c: Fix comment typo(s).
219 * cxx-pretty-print.h: Likewise.
220 * name-lookup.c: Likewise.
221 * parser.c: Likewise.
222
223 2005-07-20 Douglas Gregor <doug.gregor@gmail.com>
224
225 PR c++/2922
226 * semantics.c (perform_koenig_lookup): For dependent calls, just
227 return the set of functions we've found so far. Later, it will be
228 augmented by those found through argument-dependent lookup.
229 * name-lookup.c (lookup_arg_dependent): Implement DR 164 by removing
230 the optimization that skips namespaces where the functions were
231 originally found.
232
233 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
234
235 Make CONSTRUCTOR use VEC to store initializers.
236 * call.c (convert_default_arg): Update call to digest_init.
237 * class.c (dump_class_hierarchy, dump_array): Update to cope with
238 VEC in CONSTRUCTOR_ELTS.
239 * cp-tree.h (EMPTY_CONSTRUCTOR_P): Likewise.
240 (finish_compound_literal, digest_init): Update declaration.
241 * decl.c (struct reshape_iter): New data type.
242 (reshape_init_array): Rename to...
243 (reshape_init_array_1): Update to cope with VEC in CONSTRUCTOR_ELTS.
244 (reshape_init): Rewrite from scratch. Split parts into...
245 (reshape_init_array, reshape_init_vector, reshape_init_class,
246 reshape_init_r): New functions.
247 (check_initializer): Update call to reshape_init. Remove obsolete
248 code.
249 (initialize_artificial_var, cp_complete_array_type): Update to cope
250 with VEC in CONSTRUCTOR_ELTS.
251 * decl2.c (grokfield): Update calls to digest_init.
252 (mark_vtable_entries): Update to cope with VEC in CONSTRUCTOR_ELTS.
253 * error.c (dump_expr_init_vec): New function.
254 (dump_expr): Use dump_expr_init_vec.
255 * init.c (build_zero_init, build_vec_init): Update to cope with VEC
256 in CONSTRUCTOR_ELTS.
257 (expand_default_init): Update call to digest_init.
258 * parser.c (cp_parser_postfix_expression): Use a VEC for the
259 initializers.
260 (cp_parser_initializer_list): Build a VEC of initializers.
261 * pt.c (tsubst_copy, tsubst_copy_and_build): Update to cope with VEC
262 in CONSTRUCTOR_ELTS.
263 * rtti.c (tinfo_base_init, generic_initializer, ptr_initializer,
264 ptm_initializer, class_initializer, get_pseudo_ti_init): Use
265 build_constructor_from_list instead of build_constructor.
266 * semantics.c (finish_compound_literal): Update call to digest_init.
267 * tree.c (stabilize_init): Update to cope with VEC in
268 CONSTRUCTOR_ELTS.
269 * typeck.c (build_ptrmemfunc1): Likewise.
270 * typeck2.c: (cxx_incomplete_type_error, split_nonconstant_init_1):
271 Likewise.
272 (store_init_value): Use build_constructor_from_list and update call
273 to digest_init.
274 (digest_init): Rewrite.
275 (process_init_constructor): Rewrite from scratch. Split into...
276 (process_init_constructor_array, picflag_from_initializer,
277 process_init_constructor_record, process_init_constructor_union):
278 New functions.
279 (PICFLAG_ERRONEOUS, PICFLAG_NOT_ALL_CONSTANT, PICFLAG_NOT_ALL_SIMPLE):
280 New macros.
281 (build_functional_cast): Use build_constructor_from_list instead of
282 build_constructor.
283
284 2005-07-18 Mark Mitchell <mark@codesourcery.com>
285
286 PR c++/22263
287 * cp-tree.h (instantiate_decl): Change prototype.
288 * decl2.c (mark_used): Adjust accordingly.
289 * pt.c (do_decl_instantiation): Likewise.
290 (instantiate_class_member): Likewise.
291 (instantiate_decl): Rename undefined_ok as expl_inst_class_mem_p.
292 Clear DECL_INTERFACE_KNOWN for an explicitly instantiated template
293 that has no definition available.
294 (instantiate_pending_templates): Adjust call to instantiate_decl.
295
296 2005-07-17 Mark Mitchell <mark@codesourcery.com>
297
298 PR c++/22139
299 * cp-tree.h (DECL_TEMPLATE_INFO): Improve documentation.
300 * decl.c (duplicate_decls): Re-register template specializations
301 for functions that have DECL_TEMLPLATE_INFO, even if they do not
302 have DECL_TEMPLATE_INSTANTIATION set.
303
304 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
305
306 * call.c (diagnostic_fn_t): New.
307 (build_temp, convert_like_real): Use diagnostic_fn_t.
308
309 2005-07-15 Mark Mitchell <mark@codesourcery.com>
310
311 PR c++/22204
312 * repo.c (repo_emit_p): Robustify.
313
314 2005-07-14 Daniel Berlin <dberlin@dberlin.org>
315
316 Fix PR c++/22452
317 * tree.c (decl_linkage): Don't check DECL_COMDAT on CONST_DECL.
318
319 2005-07-15 Mark Mitchell <mark@codesourcery.com>
320
321 PR c++/22132
322 * call.c (implicit_conversion): Add c_cast_p parameter.
323 (standard_conversion): Likewise. Allow conversions between
324 differently-qualified pointer types when performing a C-style
325 cast.
326 (add_function_candidate): Adjust callee.
327 (build_builtin_candidate): Likewise.
328 (build_user_type_conversion_1): Likewise.
329 (conditional_conversion): Likewise.
330 (can_convert_arg): Likewise.
331 (can_convert_arg_bad): Likewise.
332 (perform_implicit_conversion): Likewise.
333 * cp-tree.h (comp_ptr_ttypes_const): Declare.
334 * typeck.c (comp_ptr_ttypes_const): Give it external linkage.
335 Return bool.
336
337 2005-07-12 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
338 Nathan Sidwell <nathan@codesourcery.com>
339
340 PR c++/20172
341 * pt.c (tsubst_template_parms): Check for invalid non-type
342 parameters.
343
344 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
345
346 * cp-lang.c (shadowed_var_for_decl, decl_shadowed_for_var_lookup,
347 decl_shadowed_for_var_insert): Move over to cp-objcp-common.c.
348 (cp_init_ts): Call init_shadowed_var_for_decl.
349 Remove include of gt-cp-cp-lang.h.
350 * cp-objcp-common.c (shadowed_var_for_decl,
351 decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Moved from
352 cp-lang.c.
353 (init_shadowed_var_for_decl): New function to initialize
354 shadowed_var_for_decl.
355 Include gt-cp-cp-objcp-common.h.
356 * Make-lang.in (gt-cp-lang.h): Remove.
357 (gt-cp-cp-objcp-common.h): Add.
358 (cp/cp-lang.o): Remove dependancy on gt-cp-lang.h.
359 (cp/cp-objcp-common.o): Add dependancy on gt-cp-cp-objcp-common.h.
360 * config-lang.in (gtfiles): Remove cp-lang.c and Add cp-objcp-common.c.
361 * cp-tree (init_shadowed_var_for_decl): Add prototype.
362
363 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
364
365 * Make-lang.in: Add gt-cp-lang.h.
366 (cp-lang.o): Ditto.
367 * class.c (create_vtable_ptr): Stop setting DECL_ASSEMBLER_NAME on
368 the field.
369 * config-lang.in: Add cp-lang.c to gtfiles.
370 * cp-lang.c: Include hashtab.h.
371 (cp_init_ts): New function.
372 (LANG_HOOK_INIT_TS): Use macro.
373 (decl_shadowed_for_var_lookup): New function.
374 (decl_shadowed_for_var_insert): Ditto.
375 * cp-tree.h (THUNK_FUNCTION_CHECK): Use decl_common.
376 (NON_THUNK_FUNCTION_CHECK): Ditto.
377 (DECL_NAMESPACE_ASSOCIATIONS): Use decl_non_common.
378 (DECL_INIT_PRIORITY): Ditto.
379 (DECL_HAS_SHADOWED_FOR_VAR_P): Ditto.
380 (DECL_SHADOWED_FOR_VAR): Use hashtable.
381 (SET_DECL_SHADOWED_FOR_VAR): Ditto.
382 * decl.c (duplicate_decls): Update for new/updated structures.
383 (poplevel): Use SET_DECL_SHADOWED_FOR_VAR.
384 * decl2.c (start_static_initialization_or_destruction): Deal with
385 priority.
386 * pt.c (tsubst_decl): Check TS_DECL_WRTL before doing
387 SET_DECL_RTL.
388 * tree.c (handle_init_priority_attribute): Handle priority.
389
390 2005-07-08 Nathan Sidwell <nathan@codesourcery.com>
391
392 PR c++/21799
393 * pt.c (type_unification_real): Add is_method argument. Use it
394 for this pointer unification.
395 (fn_type_unification): Adjust type_unification_real call.
396 (unify): Likewise.
397
398 2005-07-07 Nathan Sidwell <nathan@codesourcery.com>
399
400 * pt.c (type_unification_real): Remove allow_incomplete argument.
401 Remove unreachable code.
402 (fn_type_unification): Adjust call to type_unification_real.
403 (unify): Likewise.
404
405 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
406
407 * Makefile.in (class.o, decl2.o): Adjust dependencies.
408 * class.c: Include tree-dump.h.
409 * decl2.c: Include tree-dump.h.
410
411 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
412
413 * dump.c: Use dump_string_field.
414
415 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
416
417 * cp-tree.h (GCC_DIAG_STYLE): #undef before defining. Change
418 minimum GCC version for format checking to 4.1.
419
420 2005-07-02 Kazu Hirata <kazu@codesourcery.com>
421
422 * Make-lang.in (cc1plus-checksum.c): Use
423 build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
424
425 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
426
427 * name-lookup.c, parser.c: Use %q, %< and %> to quote in
428 diagnostics.
429
430 2005-07-02 Zack Weinberg <zack@codesourcery.com>
431 Joseph S. Myers <joseph@codesourcery.com>
432
433 * error.c (location_of): Add comment.
434 (locate_error, cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
435 * cp-tree.h (cp_error_at, cp_warning_at, cp_pedwarn_at): Remove.
436 * call.c, class.c, decl.c, decl2.c, friend.c, init.c,
437 name-lookup.c, parser.c, pt.c, search.c, semantics.c, typeck.c,
438 typeck2.c: Use '+' flag instead of %J, cp_error_at, cp_warning_at
439 or cp_pedwarn_at. Mark up some diagnostic strings with N_.
440
441 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
442
443 * decl.c (require_complete_types_for_parms): Call relayout_decl
444 instead of layout_decl.
445
446 2005-06-30 Zack Weinberg <zack@codesourcery.com>
447 Jakub Jelinek <jakub@redhat.com>
448
449 * cp-lang.c: No need to include cxx-pretty-print.h.
450 * error.c (cp_printer): Update signature. No need to process
451 flags.
452 (print_instantiation_partial_context): Output last newline
453 with pp_base_newline.
454 * Make-lang.in: Update dependencies.
455
456 2005-06-30 Steven Bosscher <stevenb@suse.de>
457
458 * decl.c (start_decl): Replace DECL_THREAD_LOCAL with
459 DECL_THREAD_LOCAL_P.
460 (cp_finish_decl): Likewise.
461 (grokvardecl): Set the default DECL_TLS_MODEL here.
462
463 2005-06-28 Joseph S. Myers <joseph@codesourcery.com>
464
465 * cvt.c (ocp_convert): Use invalid_conversion hook.
466 * typeck.c (build_binary_op): Use invalid_binary_op hook.
467 (build_unary_op): Use invalid_unary_op hook.
468
469 2005-06-28 Paul Brook <paul@codesourcery.com>
470
471 * Make-lang.in (cp/except.o): Depend on $(TARGET_H)
472 * except.c: Include target.h.
473 (init_exception_processing): Initialize unwind_resume_libfunc.
474 * doc/tm.texi: Document TARGET_ASM_TTYPE
475
476 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
477
478 * call.c (build_over_call): Pass in named argument list to
479 `check_function_arguments'.
480 * typeck.c (build_function_call): Likewise.
481
482 2005-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
483
484 * cp-tree.h (lang_check_failed): Add noreturn attribute.
485
486 2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
487
488 * all files: Update FSF address in copyright headers.
489
490 2005-06-23 Jason Merrill <jason@redhat.com>
491
492 PR c++/19317
493 * semantics.c (simplify_aggr_init_expr): Use
494 CALL_EXPR_RETURN_SLOT_OPT, not CALL_EXPR_HAS_RETURN_SLOT_ADDR.
495
496 2005-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
497
498 * pt.c (register_specialization): Remove superfluous assertion.
499
500 2005-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
501
502 * call.c (convert_like_real): Add format attribute.
503 * typeck.c (check_for_casting_away_constness,
504 build_static_cast_1): Likewise.
505 * typeck2.c (readonly_error, cxx_incomplete_type_diagnostic):
506 Likewise.
507
508 2005-06-17 Geoffrey Keating <geoffk@apple.com>
509
510 PR c++/17413
511 * pt.c (type_unification_real): Apply template type deduction even
512 to procedure parameters that are not dependent on a template
513 parameter.
514
515 2005-06-16 Nathan Sidwell <nathan@codesourcery.com>
516
517 * rtti.c (get_tinfo_decl): Avoid caching tinfo_descs when it might
518 change.
519 (create_pseudo_type_info): First parameter is an int.
520
521 2005-06-15 Nathan Sidwell <nathan@codesourcery.com>
522
523 PR c++/20678
524 * error.c (dump_expr) <COMPONENT_REF case>: Check DECL_NAME is not
525 null.
526
527 * Make-lang.in: Reformat some long lines.
528 (gt-cp-rtti.h): New target.
529 (cp/rtti.o): Add dependency.
530 * config-lang.in (gtfiles): Add cp/rtti.c.
531 * cp-tree.h (CPTI_TI_DESC_TYPE, CPTI_BLTN_DESC_TYPE,
532 CPTI_PTR_DESC_TYPE, CPTI_ARY_DESC_TYPE, CPTI_FUNC_DESC_TYPE,
533 CPTI_ENUM_DESC_TYPE, CPTI_CLASS_DESC_TYPE,
534 CPTI_SI_CLASS_DESC_TYPE, CPTI_VMI_CLASS_DESC_TYPE,
535 CPTI_PTM_DESC_TYPE, CPTI_BASE_DESC_TYPE): Remove.
536 (ti_desc_type_node, bltn_desc_type_node, ptr_desc_type_node,
537 ary_desc_type_node, func_desc_type_node, enum_desc_type_node,
538 class_desc_type_node, si_class_desc_type_node,
539 vmi_class_desc_type_node, ptm_desc_type_node,
540 base_desc_type_node): Remove.
541 * decl.c: Adjust documentation of global trees.
542 * rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL,
543 TINFO_REAL_NAME): Remove.
544 (struct tinfo_s): New.
545 (enum tinfo_kind): New.
546 (tinfo_descs): New.
547 (get_tinfo_decl): Adjust use of tinfo descriptor.
548 (tinfo_base_init, generic_initializer, ptr_initializer,
549 ptm_initializer, class_initializer): Likewise.
550 (get_pseudo_ti_init): Take descriptor index. Adjust.
551 (create_pseudo_type_info): Likewise.
552 (get_pseudo_ti_desc): Return descriptor index. Adjust.
553 (create_tinfo_types): Adjust use of create_pseudo_type_info.
554 (emit_tinfo_decl): Adjust use of tinfo descriptor.
555
556 2005-06-14 Roger Sayle <roger@eyesopen.com>
557
558 * decl.c (grokdeclarator): Only check TREE_OVERFLOW on INTEGER_CST.
559
560 2005-06-13 Geoffrey Keating <geoffk@apple.com>
561
562 * Make-lang.in (c++.install-man): Doesn't really depend on installdirs.
563 (rule for installing g++.1 manpage): Does depend on installdirs.
564
565 2005-06-13 Nathan Sidwell <nathan@codesourcery.com>
566
567 PR c++/20789
568 * decl.c (cp_finish_decl): Clear runtime runtime initialization if
569 in-class decl's initializer is bad.
570
571 PR c++/21929
572 * parser.c (struct cp_parser): Document that scope could be
573 error_mark.
574 (cp_parser_diagnose_invalid_type_name): Cope with error_mark for
575 scope.
576 (cp_parser_nested_name_specifier): Return NULL_TREE on error.
577 (cp_parser_postfix_expression): Deal with null or error_mark
578 scope.
579 (cp_parser_elaborated_type_specifier): Adjust
580 cp_parser_nested_name_specifier call.
581
582 * parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
583
584 2005-06-12 Roger Sayle <roger@eyesopen.com>
585
586 PR c++/21930
587 * error.c (dump_expr): UNARY_PLUS_EXPR need not handle void types.
588 Treat CONVERT_EXPR identically to NOP_EXPR.
589
590 2005-06-10 Aldy Hernandez <aldyh@redhat.com>
591
592 PR c++/10611
593 * cvt.c (build_expr_type_conversion): Same.
594 * typeck.c (build_binary_op): Handle vectors.
595 (common_type): Same.
596 (type_after_usual_arithmetic_conversions): Same.
597 * testsuite/g++.dg/conversion/simd2.C: New.
598
599 2005-06-08 Nathan Sidwell <nathan@codesourcery.com>
600
601 PR c++/19497
602 * cp-tree.def (USING_DECL): Update documentation.
603 * cp-tree.h (DECL_DEPENDENT_P): New.
604 (USING_DECL_DECLS, USING_DECL_SCOPE): New.
605 * class.c (handle_using_decl): Move most of the processing to ...
606 * name-lookup.c (do_class_using_decl): ... here. Make stricter.
607 (push_using_decl): Use USING_DECL_SCOPE.
608 (cp_emit_debug_info_for_using): Make extern.
609 * cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
610 * name-lookup.h (cp_emit_debug_info_for_using): Declare.
611 * pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
612 when tsubsting.
613 (tsubst_expr): Use USING_DECL_SCOPE.
614 * search.c (lookup_field_1): Use DECL_DEPENDENT_P.
615 * semantics.c (finish_member_declaration): Likewise.
616
617 2005-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
618
619 PR c++/19894
620 * pt.c (tsubst): Reject pointer-to-member of type void.
621
622 PR c++/20563
623 * parser.c (cp_parser_label_declaration): Deal with invalid/missing
624 identifiers.
625
626 2005-06-07 Nathan Sidwell <nathan@codesourcery.com>
627
628 * cp-tree.def (DEFAULT_ARG): Adjust documentation.
629 * cp-tree.h (DEFARG_INSTANTIATIONS): New.
630 (struct tree_default_arg): Add instantiations member.
631 * parser.c (cp_parser_late_parsing_default_args): Adjust to use a
632 VEC.
633 * pt.c (tsubst_arg_types): Likewise.
634
635 * parser.c (cp_parser_late_parsing_default_args): Fix overeager
636 assert in previous patch.
637
638 2005-06-06 Jakub Jelinek <jakub@redhat.com>
639
640 * error.c (locate_error): Use gmsgid instead of msgid for argument
641 name.
642 (cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
643
644 2005-06-06 Nathan Sidwell <nathan@codesourcery.com>
645
646 PR 21903
647 * cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
648 * parser.c (cp_parser_late_parsing_default_args): Propagate parsed
649 argument to any early instantiations.
650 * pt.c (tsubst_arg_types): Chain early instantiation of default arg.
651
652 PR c++/20637
653 * cp-tree.h (add_method): Add using_decl parameter.
654 * class.c (add_method): Add using_decl parameter. Adjust error
655 messages.
656 (handle_using_decl): Pass the using decl to add_method.
657 (clone_function_decl): Adjust add_member calls.
658 * decl2.c (check_classfn): Likewise.
659 * method.c (lazily_declare_fn): Likewise.
660 * semantics.c (finish_member_declaration): Likewise.
661
662 * method.c (synthesize_method): Use inform, not warning.
663
664 2005-06-06 Hans-Peter Nilsson <hp@axis.se>
665
666 * config-lang.in (target_libs): Remove target-gperf.
667
668 2005-06-05 Mark Mitchell <mark@codesourcery.com>
669
670 PR c++/21619
671 * cp-tree.h (DECL_IS_BUILTIN_CONSTANT_P): New macro.
672 * parser.c (cp_parser_postfix_expression): Allow non-constant
673 expressions as arguments to __builtin_constant_p.
674 * tree.c (builtin_valid_in_constant_expr_p): Use
675 DECL_IS_BUILTIN_CONSTANT_P.
676
677 2005-06-03 Mark Mitchell <mark@codesourcery.com>
678
679 PR c++/21853
680 * typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on
681 the pointed-to type for a pointer-to-member.
682
683 PR c++/21336
684 * cp-tree.h (grok_op_properties): Remove friendp parameter.
685 * decl.c (grokfndecl): Adjust call.
686 (grok_op_properties): Determine the class of which the function is
687 a member by looking at its DECL_CONTEXT, not current_class_type.
688 * pt.c (tsubst_decl): Adjust call to grok_op_properties.
689
690 2005-06-02 Nathan Sidwell <nathan@codesourcery.com>
691
692 * method.c (synthesize_method): Add addtional arg to warning call.
693
694 PR c++/21280
695 * Make-lang.in (method.o): Add diagnostic.h
696 * decl.c (start_preparsed_function): Use decl's location for file
697 info.
698 * decl2.c (cp_finish_file): Set input_location before synthesizing
699 a function.
700 (mark_used): When deferring a synthesized function, save current
701 location. Do not set function's location when actually
702 synthesizing it.
703 * method.c: #include diagnostic.h.
704 (synthesize_method): Set the functions source location. Show
705 needed location if errors are emitted.
706
707 * decl.c (start_decl): Simplify specialization handling. Remove
708 unneeded CLASSTYPE_TEMPLATE_INSTANTIATION check.
709 * mangle.c (discriminator_for_local_entity): Use VEC_index.
710
711 PR c++/20350
712 * decl.c (duplicate_decls): Copy all of DECL_USE_TEMPLATE.
713
714 PR c++/21151
715 * name-lookup.c (pushtag): Push local class even in a template.
716
717 2005-05-31 Nathan Sidwell <nathan@codesourcery.com>
718
719 PR c++/21165
720 * init.c (integral_constant_value): Check the type of the
721 initializer, not the decl.
722
723 2005-05-30 Mark Mitchell <mark@codesourcery.com>
724
725 PR c++/21784
726 * name-lookup.c (do_nonmember_using_decl): Ignore builtin
727 functions, even when the used name is not a function.
728
729 2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
730
731 * operators.def, optimize.c: Update copyright.
732
733 2005-05-28 Mark Mitchell <mark@codesourcery.com>
734
735 PR c++/21210
736 * call.c (standard_conversion): Permit conversions to complex
737 types if conversion to the corresponding scalar type would be
738 permitted.
739
740 PR c++/21340
741 * method.c (implicitly_declare_fn): Clear processing_template_decl
742 when generating implicit declaration.
743
744 2005-05-27 Mark Mitchell <mark@codesourcery.com>
745
746 PR c++/21614
747 * typeck.c (get_member_function_from_ptrfunc): Do not attempt
748 conversions to base classes of incomplete types.
749
750 2005-05-27 Ian Lance Taylor <ian@airs.com>
751
752 * semantics.c (add_stmt): Add C++ frontend specific version.
753 * cp-tree.h (STMT_IS_FULL_EXPR_P): Define.
754 (stmts_are_full_exprs_p): Declare.
755
756 2005-05-27 Roger Sayle <roger@eyesopen.com>
757 Giovanni Bajo <giovannibajo@gcc.gnu.org>
758
759 * cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code.
760 * parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead
761 of CONVERT_EXPR.
762 (cp_parser_unary_expression): Likewise.
763 * typeck.c (build_unary_op): Likewise.
764 * call.c (add_builtin_candidate, build_new_op): Likewise.
765 * error.c (dump_expr): Likewise.
766 * pt.c (tsubst_copy, tsubst_copy_and_build): Likewise.
767 * decl.c (ambi_op_p, grok_op_properties): Likewise.
768 * dump.c (dump_op): Likewise.
769 * lex.c (init_operators): Likewise.
770 * operators.def ("+"): Likewise.
771 * cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a
772 conversion, if the result and argument types differ.
773 * tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much
774 like a NOP_EXPR when !processing_template_decl.
775
776 * cxx-pretty-print.c (pp_cxx_cast_expression): Prototype.
777 (pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code.
778
779 2005-05-27 Nathan Sidwell <nathan@codesourcery.com>
780
781 PR c++/21455
782 * typeck.c (get_delta_difference): Cope with incomplete but equal
783 classes. Reorder if.
784
785 PR c++/21681
786 * parser.c (cp_parser_late_parsing_for_member): Disable access
787 checking for template functions.
788
789 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
790
791 PR c++/21768
792 * pt.c (redeclare_class_template): Change error message according
793 to coding conventions.
794
795 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
796
797 * call.c (build_op_delete_call): Fix quoting in error message.
798
799 2005-05-25 Richard Henderson <rth@redhat.com>
800
801 PR libgcj/21692
802 * cp-tree.h (make_alias_for): Declare.
803 * decl2.c (build_java_method_aliases): New.
804 (cp_finish_file): Call it.
805 * method.c (make_alias_for): Split out from ...
806 (make_alias_for_thunk): ... here.
807
808 2005-05-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
809
810 PR c++/21686
811 * semantics.c (finish_id_expression): Fix quoting in error message.
812
813 2005-05-25 DJ Delorie <dj@redhat.com>
814
815 * decl.c (duplicate_decls): Move warning control from if() to
816 warning(OPT_*).
817 * name-lookup.c (parse_using_directive): Likewise.
818 * parser.c (cp_parser_elaborated_type_specifier): Likewise.
819 (cp_parser_init_declarator): Likewise.
820 * tree.c (handle_com_interface_attribute): Likewise.
821
822 2005-05-24 Ziemowit Laski <zlaski@apple.com>
823
824 * class.c (layout_class_type): Do not issue C++ ABI warnings
825 for ObjC structs.
826 * decl.c (objc_mark_locals_volatile): Streamline by calling
827 objc_volatilize_decl().
828 * parser.c (cp_parser_objc_message_expression): Allow simple
829 type specifiers (instead of merely type names) as message
830 receivers.
831 * pt.c (template_args_equal): Do not call objc_comptypes().
832 * typeck.c (composite_pointer_type): If both pointers are
833 ObjC-esque, arbitrarily choose the first; do not call
834 objc_comptypes().
835 (comptypes): Do not call objc_comptypes().
836 (convert_for_assignment): Call objc_compare_types().
837 (comp_ptr_ttypes_real): Call objc_type_quals_match() before
838 concluding that types do not match.
839
840 2005-05-24 Andrew Pinski <pinskia@physics.uc.edu>
841
842 PR C++/21645
843 * optimize.c (update_cloned_parm): Copy the TYPE also from the
844 original one.
845
846 2005-05-19 Jakub Jelinek <jakub@redhat.com>
847
848 PR c++/21495
849 * decl.c (grokdeclarator): Fix "storage class specified for"
850 error reporting.
851
852 2005-05-19 Kazu Hirata <kazu@cs.umass.edu>
853
854 * parser.c: Fix comment typos.
855
856 2005-05-18 Geoffrey Keating <geoffk@apple.com>
857
858 * Make-lang.in (cc1plus-dummy): New.
859 (cc1plus-checksum.c): New.
860 (cc1plus-checksum.o): New.
861 (cc1plus): Add cc1plus-checksum.o.
862
863 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR C++/19664
866 * decl2.c (determine_visibility): Don't set visibility to
867 hidden if it has been set explicitly by user.
868
869 2005-05-17 Ziemowit Laski <zlaski@apple.com>
870 Mike Stump <mrs@apple.com>
871
872 Yet more Objective-C++...
873
874 * cp-objcp-common.h (cxx_get_alias_set): Move from
875 here...
876 (cxx_warn_unused_global_decl): Likewise.
877 (cp_expr_size): Likewise.
878 (cp_tree_size): Likewise.
879 (cp_var_mod_type_p): Likewise.
880 (cxx_initialize_diagnostics): Likewise.
881 (cxx_types_compatible_p): Likewise.
882 * cp-tree.h: to here.
883 (do_poplevel): Add.
884 * lex.c (D_OBJC): Add.
885 (init_reswords): Add.
886 * Make-lang.in (cp/pt.o): Add cp/cp-objcp-common.h.
887 * parser.c: Add c-common.h include.
888 * pt.c: Add c-common.h and cp-objcp-common.h includes.
889 (template_args_equal): Use objc_comptypes as well.
890 (tsubst_copy_and_build): Use objcp_tsubst_copy_and_build as well.
891 * semantics.c (do_poplevel): Remove static.
892
893 * decl.c (objc_mark_locals_volatile): Don't change decls that are
894 already ok.
895 * decl2.c (generate_ctor_or_dtor_function): Add code to initialize
896 Objective C++ early enough.
897 * lex.c (struct resword reswords): Add Objective-C++ support.
898 * parser.c (cp_lexer_get_preprocessor_token): Add Objective-C++.
899 (cp_parser_objc_message_receiver): Add.
900 (cp_parser_objc_message_args): Likewise.
901 (cp_parser_objc_message_expression): Likewise.
902 (cp_parser_objc_encode_expression): Likewise.
903 (cp_parser_objc_defs_expression): Likewise.
904 (cp_parser_objc_protocol_expression): Likewise.
905 (cp_parser_objc_selector_expression): Likewise.
906 (cp_parser_objc_expression): Likewise.
907 (cp_parser_objc_visibility_spec): Likewise.
908 (cp_parser_objc_method_type): Likewise.
909 (cp_parser_objc_protocol_qualifiers): Likewise.
910 (cp_parser_objc_typename): Likewise.
911 (cp_parser_objc_selector_p): Likewise.
912 (cp_parser_objc_selector): Likewise.
913 (cp_parser_objc_method_keyword_params): Likewise.
914 (cp_parser_objc_method_tail_params_opt): Likewise.
915 (cp_parser_objc_interstitial_code): Likewise.
916 (cp_parser_objc_method_signature): Likewise.
917 (cp_parser_objc_method_prototype_list): Likewise.
918 (cp_parser_objc_method_definition_list): Likewise.
919 (cp_parser_objc_class_ivars): Likewise.
920 (cp_parser_objc_identifier_list): Likewise.
921 (cp_parser_objc_alias_declaration): Likewise.
922 (cp_parser_objc_class_declaration): Likewise.
923 (cp_parser_objc_protocol_declaration): Likewise.
924 (cp_parser_objc_protocol_refs_opt): Likewise.
925 (cp_parser_objc_superclass_or_category): Likewise.
926 (cp_parser_objc_class_interface): Likewise.
927 (cp_parser_objc_class_implementation): Likewise.
928 (cp_parser_objc_end_implementation): Likewise.
929 (cp_parser_objc_declaration): Likewise.
930 (cp_parser_objc_try_catch_finally_statement): Likewise.
931 (cp_parser_objc_synchronized_statement): Likewise.
932 (cp_parser_objc_throw_statement): Likewise.
933 (cp_parser_objc_statement): Likewise.
934 (cp_parser_primary_expression): Add Objective-C++.
935 (cp_parser_statement): Likewise.
936 (cp_parser_declaration): Likewise.
937 (cp_parser_simple_type_specifier): Likewise.
938 (cp_parser_type_name): Likewise.
939 (cp_parser_parameter_declaration_list): Likewise.
940 (cp_parser_member_declaration) Likewise.
941 * tree.c: Include debug.h.
942 * typeck.c (composite_pointer_type): Add Objective-C++ support.
943 (finish_class_member_access_expr): Likewise.
944 (build_function_call): Allow objc to rewrite FUNCTION_DECLs.
945 (build_modify_expr): Allow objc to generate write barriers.
946
947 * Make-lang.in (cp/tree.o): Add debug.h.
948 * tree.c (lvalue_p_1, case CONST_DECL): Add.
949
950 2005-05-18 Jan Hubicka <jh@suse.cz>
951
952 * method.c: Include tree-pass.h
953 (use_thunk): Lower body before expanding.
954
955 2005-05-17 Jakub Jelinek <jakub@redhat.com>
956
957 PR c++/21454
958 * decl.c (maybe_deduce_size_from_array_init): Call
959 cp_apply_type_quals_to_decl after completing array type.
960
961 2005-05-16 Richard Henderson <rth@redhat.com>
962
963 * decl.c (build_library_fn_1): Move setting TREE_NOTHROW ...
964 (build_library_fn): ... here.
965
966 2005-05-12 Ian Lance Taylor <ian@airs.com>
967
968 * cp-tree.h (cp_stmt_codes): Don't define.
969 (statement_code_p): Declare.
970 (STATEMENT_CODE_P): Define.
971 * lex.c (statement_code_p): Define.
972 (cxx_init): Use actual codes in stmt_codes initializer, not
973 cp_stmt_codes macro. Initialize statement_code_p directly, rather
974 than using INIT_STATEMENT_CODES.
975
976 2005-05-09 Mark Mitchell <mark@codesourcery.com>
977
978 * typeck.c (build_unary_op): Do not resort to address arithmetic
979 when taking the address of a COMPONENT_REF.
980
981 2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
982
983 * class.c (vtbl_init_data_s): Change the type of fns to
984 VEC(tree,gc)*.
985 (build_vtbl_initializer, add_vcall_offset, add_vcall_offset):
986 Use VEC instead of VARRAY.
987
988 2005-05-07 Richard Sandiford <rsandifo@redhat.com>
989
990 * mangle.c: Remove a reference to the MIPS -mint64 option.
991
992 2005-05-07 Kazu Hirata <kazu@cs.umass.edu>
993
994 * decl.c (wrapup_globals_for_namespace): Use VEC instead of
995 VARRAY.
996 * name-lookup.c (add_decl_to_level, begin_scope): Likewise.
997 * name-lookup.h (cp_binding_level): Change the type of
998 static_decls to VEC(tree,gc)*.
999
1000 * mangle.c (globals): Change the type of substitutions to
1001 VEC(tree,gc)*.
1002 (dump_substitution_candidates, add_substitution,
1003 find_substitution, finish_mangling, init_mangle): Use VEC
1004 instead of VARRAY.
1005
1006 2005-05-06 Kazu Hirata <kazu@cs.umass.edu>
1007
1008 * decl2.c (spew_debug): Remove.
1009
1010 * decl2.c (ssdf_decls, start_static_storage_duration_function,
1011 generate_ctor_or_dtor_function): Use VEC instead of VARRAY.
1012
1013 * decl2.c (pending_statics, note_vague_linkage_var,
1014 cp_finish_file): Use VEC instead of VARRAY.
1015 (pending_statics_used): Remove.
1016
1017 2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
1018
1019 * decl2.c (deferred_fns, note_vague_linkage_fn,
1020 cp_finish_file): Use VEC instead of VARRAY.
1021
1022 2005-05-05 Mark Mitchell <mark@codesourcery.com>
1023
1024 PR c++/21352
1025 * pt.c (build_non_dependent_expr): Use is_overloaded_fn.
1026
1027 2005-05-05 Kazu Hirata <kazu@cs.umass.edu>
1028
1029 * pt.c: Fix a comment typo.
1030
1031 2005-05-04 Kazu Hirata <kazu@cs.umass.edu>
1032
1033 * cp-tree.h (language_function): Change the type of
1034 x_local_names to VEC.
1035 * decl.c (push_local_name): Adjust uses of local_names.
1036
1037 2005-05-03 Kazu Hirata <kazu@cs.umass.edu>
1038
1039 * friend.c, lex.c, mangle.c, repo.c: Update copyright.
1040
1041 2005-05-02 Kazu Hirata <kazu@cs.umass.edu>
1042
1043 * class.c (local_classes, init_class_processing): Use VEC
1044 instead of VARRAY.
1045 * cp-tree.h (local_classes): Likewise.
1046 * mangle.c (discriminator_for_local_entity): Likewise.
1047 * name-lookup.c (pushtag): Likewise.
1048
1049 * class.c (current_lang_depth, push_lang_context,
1050 pop_lang_context): Use VEC instead of VARRAY.
1051 * cp-tree.h (saved_scope): Use VEC for lang_base instead of
1052 VARRAY.
1053 * name-lookup.c (push_to_top_level): Use VEC instead of
1054 VARRAY.
1055
1056 2005-05-02 Paolo Bonzini <bonzini@gnu.org>
1057
1058 * semantics.c (finish_call_expr): Call resolve_overloaded_builtin
1059 for BUILT_IN_MD built-ins.
1060
1061 2005-05-02 Michael Matz <matz@suse.de>
1062
1063 PR c++/19542
1064 * cp-tree.h (cp_tree_index): Remove CPTI_NULL, to be defined in C
1065 common frontend.
1066 (null_node): Remove.
1067 * lex.c (cxx_init): Move null_node initialisation to C common frontend.
1068
1069 2005-04-25 Ian Lance Taylor <ian@airs.com>
1070
1071 * cp-tree.def: Add EXPR_STMT.
1072 * cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
1073 (EXPR_STMT_EXPR): Define.
1074 * cp-gimplify.c: Include "flags.h".
1075 (gimplify_expr_stmt): New static function.
1076 (cp_gimplify_expr): Handle EXPR_STMT.
1077 * cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
1078 rather than pp_expression.
1079 (pp_cxx_statement): Handle EXPR_STMT.
1080 * dump.c (cp_dump_tree): Handle EXPR_STMT.
1081 * lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
1082 initializer.
1083
1084 2005-04-25 Andrew Pinski <pinskia@physics.uc.edu>
1085
1086 PR C++/21188
1087 * rtti.c (ifnonnull): Cast the zero comparison operand
1088 to the correct type.
1089
1090 2005-04-24 Jakub Jelinek <jakub@redhat.com>
1091
1092 PR middle-end/20991
1093 * class.c: Include cgraph.h.
1094 (cp_fold_obj_type_ref): Set node->local.vtable_method.
1095 * Make-lang.in (cgraph.o): Depend on $(CGRAPH_H).
1096
1097 2005-04-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
1098
1099 * mangle.c (write_builtin_type): Handle integer types which are
1100 not one of the shared integer type nodes and emit a "vendor
1101 extended builtin type" with an encoding in the form of "u5int96".
1102
1103 2005-04-24 Ian Lance Taylor <ian@airs.com>
1104
1105 * cp-tree.def (USING_STMT): Change class to tcc_statement.
1106 (TRY_BLOCK, EH_SPEC_BLOCK, HANDLER, CLEANUP_STMT): Likewise.
1107 (IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT): Likewise.
1108 (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.
1109
1110 2005-04-23 DJ Delorie <dj@redhat.com>
1111
1112 * call.c, class.c, cvt.c, decl.c, decl2.c, except.c, friend.c,
1113 init.c, lex.c, mangle.c, method.c, name-lookup.c, parser.c,
1114 repo.c, rtti.c, tree.c, typeck.c, typeck2.c: Adjust warning()
1115 callers.
1116
1117 2005-04-22 Per Bothner <per@bothner.com>
1118
1119 * decl.c (make_rtl_for_nonlocal_decl): Don't try get_fileinfo if
1120 input_filename is NULL, as it is for (say) __PRETTY_FUNCTION__.
1121
1122 2005-04-22 Alexandre Oliva <aoliva@redhat.com>
1123
1124 PR c++/21087
1125 * name-lookup.c (push_overloaded_decl): Do not overload with
1126 non-duplicate anticipated built-in.
1127
1128 2005-04-21 Kazu Hirata <kazu@cs.umass.edu>
1129
1130 * cp-tree.h (THROW_NAME, AUTO_VTABLE_NAME, AUTO_TEMP_FORMAT,
1131 VTABLE_BASE, VTABLE_NAME_PREFIX, STATIC_NAME_FORMAT): Remove.
1132
1133 2005-04-21 Nathan Sidwell <nathan@codesourcery.com>
1134
1135 * cp-tree.h: Adjust for new VEC API.
1136 Define VEC(tree_pair_s,gc).
1137 (struct save_scope): Adjust.
1138 (struct lang_type_class): Adjust.
1139 (unemitted_tinfo_decls): Adjust.
1140 * class.c (add_method, resort_type_method_vec,
1141 finish_struct_methods, struct find_final_overrider_data,
1142 dfs_find_final_overrider_pre, find_final_overrider,
1143 get_vcall_index, warn_hidden, walk_subobject_offsets,
1144 check_methods, fixup_inline_methods, end_of_class,
1145 warn_about_ambiguous_bases, finish_struct, build_vtbl_initializer,
1146 add_vcall_offset): Adjust.
1147 * decl.c (xref_basetypes, finish_method): Adjust.
1148 * decl2.c (check_classfn): Adjust.
1149 * init.c (sort_mem_initializers, push_base_cleanups): Adjust.
1150 * method.c (do_build_copy_constructor): Adjust.
1151 * name-lookup.c (new_class_binding, store_binding,
1152 store_bindings, store_class_bindings): Adjust.
1153 * name-lookup.h: Define VEC(cxx_saved_binding,gc),
1154 VEC(cp_class_binding,gc).
1155 (struct cp_binding_level): Adjust.
1156 * parser.c: Define VEC(cp_token_position,heap).
1157 (struct cp_lexer): Adjust.
1158 (cp_lexer_new_main, cp_lexer_new_from_tokens, cp_lexer_destroy,
1159 cp_lexer_save_tokens): Adjust.
1160 * pt.c (retrieve_specialization,
1161 check_explicit_specialization): Adjust.
1162 * rtti.c (unemitted_tinfo_decls): Adjust.
1163 (init_rtti_processing, get_tinfo_decl, get_pseudo_ti_init,
1164 get_pseudo_ti_desc): Adjust.
1165 * search.c (dfs_access_in_type, lookup_conversion_operator,
1166 lookup_fnfields_1, dfs_walk_once, dfs_walk_once_accessible,
1167 dfs_get_pure_virtuals, lookup_conversions_r, binfo_for_vbase): Adjust.
1168 * semantics.c: Define VEC(deferred_access,gc).
1169 (push_deferring_access_checks): Adjust.
1170 * typeck2.c (abstract_virtuals_error): Adjust.
1171
1172 2005-04-20 Ian Lance Taylor <ian@airs.com>
1173
1174 * cp-tree.def: Add STMT_EXPR.
1175 * cp-tree.h (STMT_EXPR_NO_SCOPE): Define.
1176 (STMT_EXPR_STMT): Define.
1177 * cxx-pretty-print.c (pp_cxx_primary_expression): Handle
1178 STMT_EXPR.
1179 (pp_cxx_expression): Likewise.
1180 (pp_cxx_statement): Call pp_cxx_statement, not pp_statement.
1181 * dump.c (cp_dump_tree): Handle STMT_EXPR.
1182
1183 2005-04-18 Kazu Hirata <kazu@cs.umass.edu>
1184
1185 * decl.c (expand_static_init): Call build2 and build3 instead
1186 of build.
1187
1188 * cp-tree.h (VPTR_NAME, VPTR_NAME_P): Remove.
1189
1190 2005-04-17 Ian Lance Taylor <ian@airs.com>
1191
1192 * cp-tree.def: Add SIZEOF_EXPR, ARROW_EXPR and ALIGNOF_EXPR.
1193 * cxx-pretty-print.c (pp_cxx_postfix_expression): Handle
1194 ARROW_EXPR.
1195 (pp_cxx_unary_expression): Handle SIZEOF_EXPR and ALIGNOF_EXPR.
1196 (pp_cxx_expression): Handle ARROW_EXPR, SIZEOF_EXPR, and
1197 ALIGNOF_EXPR.
1198 * typeck.c (cxx_sizeof_or_alignof_type): Update call to
1199 c_sizeof_or_alignof_type for change in parameter type.
1200
1201 2005-04-16 Mark Mitchell <mark@codesourcery.com>
1202
1203 PR c++/21025
1204 * typeck.c (cxx_sizeof_or_alignof_type): Check whether the type to
1205 which sizeof/alignof is dependent, rather than just whether we are
1206 processing_template_decl.
1207
1208 2005-04-17 Kazu Hirata <kazu@cs.umass.edu>
1209
1210 * cp-tree.h (LOOKUP_GLOBAL): Remove.
1211 (LOOKUP_ONLYCONVERTING, DIRECT_BIND, LOOKUP_NO_CONVERSION,
1212 LOOKUP_DESTRUCTOR, LOOKUP_NO_TEMP_BIND, LOOKUP_PREFER_TYPES,
1213 LOOKUP_PREFER_NAMESPACES, LOOKUP_CONSTRUCTOR_CALLABLE): Adjust
1214 their values.
1215
1216 2005-04-15 Richard Henderson <rth@redhat.com>
1217
1218 PR middle-end/14311
1219 * semantics.c (finish_call_expr): Call resolve_overloaded_builtin.
1220
1221 2005-04-15 Kazu Hirata <kazu@cs.umass.edu>
1222
1223 * cp-tree.h (lang_type_class): Remove redefined. Move
1224 java_interface into where redefined was. Increment the width
1225 of dummy.
1226 (TYPE_REDEFINED): Remove.
1227
1228 2005-04-14 Kazu Hirata <kazu@cs.umass.edu>
1229
1230 * cp-tree.h (SET_TMPL_ARG, ENUM_TI_TEMPLATE, ENUM_TI_ARGS,
1231 CLASSTYPE_TEMPLATE_LEVEL): Remove.
1232
1233 2005-04-11 Mark Mitchell <mark@codesourcery.com>
1234
1235 * decl2.c (determine_visibility): Don't use export_class_data.
1236 (import_export_decl): Honor TARGET_CXX_CLASS_DATA_ALWAYS_WEAK and
1237 TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY.
1238
1239 2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
1240
1241 * cp-tree.h (cxx_alignof): Remove.
1242
1243 * cp-tree.h (DECL_ARRAY_DELETE_OPERATOR_P): Remove.
1244
1245 * cp-tree.h (EXCEPTION_CLEANUP_NAME, B_SET, B_CLR, B_TST,
1246 CONV_STATIC_CAST): Remove.
1247
1248 * pt.c (UNIFY_ALLOW_MAX_CORRECTION): Remove.
1249
1250 * cp-tree.h (VF_BINFO_VALUE, VF_BASETYPE_VALUE): Remove.
1251
1252 * cp-tree.h (cp_deprecated): Remove.
1253
1254 2005-04-08 Ian Lance Taylor <ian@airs.com>
1255
1256 * cp-tree.def: Define FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
1257 CONTINUE_STMT, SWITCH_STMT.
1258 * cp-tree.h (cp_stmt_codes): Add FOR_STMT, WHILE_STMT, DO_STMT,
1259 BREAK_STMT, CONTINUE_STMT, SWITCH_STMT.
1260 (WHILE_COND, WHILE_BODY): Define.
1261 (DO_COND, DO_BODY): Define.
1262 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Define.
1263 (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Define.
1264 * cp-gimplify.c (enum bc_t): Define.
1265 (struct cp_gimplify_ctx, ctxp): Define.
1266 (push_context, pop_context): New static functions.
1267 (begin_bc_block, finish_bc_block): New static functions.
1268 (build_bc_goto): New static function.
1269 (gimplify_cp_loop, gimplify_for_stmt): New static functions.
1270 (gimplify_while_stmt, gimplify_do_stmt): Likewise.
1271 (gimplify_switch_stmt): Likewise.
1272 (cp_gimplify_expr): Handle FOR_STMT, WHILE_STMT, DO_STMT,
1273 SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
1274 (cp_genericize): Call push_context and pop_context.
1275 * semantics.c (finish_break_stmt): Just call build_stmt
1276 (BREAK_STMT) rather than build_break_stmt.
1277 (finish_continue_stmt): Corresponding change.
1278 * decl.c (pop_switch): Update call to c_do_switch_warnings for new
1279 parameters.
1280 * cxx-pretty-print.c (pp_cxx_statement): Handle SWITCH_STMT,
1281 WHILE_STMT, DO_STMT, FOR_STMT, BREAK_STMT, CONTINUE_STMT.
1282 * dump.c (cp_dump_tree): Likewise.
1283
1284 2005-04-08 Mark Mitchell <mark@codesourcery.com>
1285
1286 PR c++/20905
1287 * parser.c (cp_parser_type_specifier_seq): Add is_condition
1288 parameter.
1289 (cp_parser_new_type_id): Pass it.
1290 (cp_parser_condition): Likewise.
1291 (cp_parser_conversion_type_id): Likewise.
1292 (cp_parser_type_id): Likewise.
1293 (cp_parser_type_specifier_seq): In a condition, do not allow
1294 invalid type-specifier combinations.
1295 (cp_parser_exception_declaration): Adjust call to
1296 cp_parser_type_specifier_seq.
1297
1298 * cp-tree.def (TINST_LEVEL): Document TINST_IN_SYSTEM_HEADER_P.
1299 * cp-tree.h (struct tinst_level): Add in_system_header_p.
1300 (TINST_IN_SYSTEM_HEADER_P): New macro.
1301 (make_tinst_level): Remove.
1302 * pt.c (lookup_template_class): Preserve DECL_IN_SYSTEM_HEADER on
1303 the instantiated class.
1304 (push_tinst_level): Do not use make_tinst_level. Set
1305 TINST_IN_SYSTEM_HEADER_P.
1306 (pop_tinst_level): Likewise.
1307 (instantiate_class_template): Set in_system_header.
1308 (instantiate_pending_templates): Likewise.
1309 * tree.c (make_tinst_level): Remove.
1310
1311 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
1312
1313 * decl.c (start_decl): Apply pending #pragma weak regardless of
1314 scope.
1315
1316 2005-04-06 Mark Mitchell <mark@codesourcery.com>
1317
1318 PR c++/20212
1319 * pt.c (regenerate_decl_from_template): Copy attributes for
1320 parameters from the pattern to the instantiation.
1321
1322 2005-04-05 Mark Mitchell <mark@codesourcery.com>
1323
1324 PR c++/20734
1325 * cp-tree.def (OFFSET_REF): Correct comments.
1326 * init.c (build_offset_ref): Remove misleading comment.
1327 * typeck.c (build_unary_op): Handle pointer-to-member creation
1328 here, rather than ...
1329 (unary_complex_lvalue): ... here.
1330
1331 2005-04-06 Jason Merrill <jason@redhat.com>
1332
1333 PR c++/19312
1334 * tree.c (stabilize_init): Don't bother trying to stabilize
1335 something with no side-effects.
1336
1337 2005-04-05 Mark Mitchell <mark@codesourcery.com>
1338
1339 PR c++/20763
1340 * decl.c (grokdeclarator): Correct attribute handling.
1341
1342 2005-04-05 Mark Mitchell <mark@codesourcery.com>
1343
1344 PR c++/19159
1345 * decl2.c (import_export_decl): Use non-COMDAT external linkage
1346 for virtual tables, typeinfo, etc. that will be emitted in only
1347 one translation unit on systems without weak symbols.
1348
1349 2005-04-04 Mark Mitchell <mark@codesourcery.com>
1350
1351 PR c++/20679
1352 * parser.c (cp_parser_template_name): Fix thinko.
1353
1354 2005-04-04 Nathan Sidwell <nathan@codesourcery.com>
1355
1356 PR c++/20746
1357 * method.c (use_thunk): Protect covariant pointer return
1358 adjustments from NULL pointers.
1359
1360 2005-04-04 Jan Hubicka <jh@suse.cz>
1361
1362 * decl2.c (finish_objects): Revert my previous patch.
1363 (cp_finish_file): Likewise.
1364
1365 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
1366
1367 * pt.c: Fix comment typos.
1368
1369 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
1370
1371 PR c++/20723
1372 * pt.c (more_specialized_fn): Member functions are unordered wrt
1373 non-members. Conversion operators are unordered wrt other
1374 functions.
1375
1376 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
1377
1378 * call.c (add_template_candidates_real): Remove length parameter
1379 from fn_type_unification call.
1380 * class.c (resolve_address_of_overloaded_function): Likewise
1381 * cp-tree.h (fn_type_unification): Remove length parameter.
1382 * pt.c (get_bindings_overload): Remove.
1383 (get_bindings_real): Rename to ...
1384 (get_bindings): ... here. Remove length and strict
1385 parameters. Change return type flag to boolean. Remove original
1386 forwarding function.
1387 (determine_specialization): Adjust get_bindings call.
1388 (fn_type_unification): Remove length parameter. Adjust.
1389 (type_unification_real): Remove length parameter. Adjust.
1390 (resolve_overloaded_unification): Adjust get_bindings call.
1391 (try_one_overload): Simplify confusing cascaded if control flow.
1392 (unify): Remove length paramter from type_unification_real call.
1393 (most_specialized_instantiation): Adjust get_bindings calls.
1394 (most_specialized): Likewise.
1395
1396 2005-03-31 Nathan Sidwell <nathan@codesourcery.com>
1397
1398 PR c++/19203, implement DR 214
1399 * call.c (joust): Use more_specialized_fn.
1400 * cp-tree.h (DEDUCE_ORDER): Remove.
1401 (more_specialized): Replace with ...
1402 (more_specialized_fn): ... this.
1403 * pt.c (maybe_adjust_types_for_deduction): Remove DEDUCE_ORDER
1404 case.
1405 (type_unification_real): Remove DEDUCE_ORDER case.
1406 (more_specialized): Replace with ...
1407 (more_specialized_fn): ... this. Implement DR 214.
1408 (most_specialized_instantiation): Use get_bindings_real directly.
1409
1410 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
1411
1412 PR c++/18644
1413 * call.c (build_new_op): Remove check for -Wsynth.
1414
1415 2005-03-31 Jan Hubicka <jh@suse.cz>
1416
1417 * decl2.c (finish_objects): Mark ctor as needed.
1418 (cp_finish_file): Output variables only in nonunit-at-a-time.
1419
1420 2005-03-29 Richard Henderson <rth@redhat.com>
1421
1422 PR c/20519
1423 * decl.c (cp_complete_array_type): Rename from complete_array_type.
1424 Use the new complete_array_type in c-common.c. Update all callers.
1425 * cp-tree.h (cp_complete_array_type): Update to match.
1426
1427 2005-03-24 Geoffrey Keating <geoffk@apple.com>
1428
1429 * typeck.c (build_static_cast_1): Allow scalar_cast between
1430 any integral, floating, or enumeration type.
1431
1432 2005-03-24 Steven Bosscher <stevenb@suse.de>
1433
1434 * typeck.c (comptypes): First determine if the types are compatible
1435 from a target-independent point of view. Check target attributes
1436 last.
1437
1438 * class.c (build_base_path):
1439 (build_vbase_offset_vtbl_entries):
1440 (add_vcall_offset): Replace fold (buildN (...)) with fold_buildN.
1441 * error.c (dump_expr): Likewise.
1442 * init.c (build_zero_init, expand_cleanup_for_base,
1443 build_vec_delete_1): Likewise.
1444 * mangle.c (write_integer_cst): Likewise.
1445 * method.c (thunk_adjust): Likewise.
1446 * pt.c (convert_nontype_argument, tsubst, unify): Likewise.
1447 * tree.c (cxx_print_statistics, array_type_nelts_total): Likewise.
1448 * typeck.c (build_ptrmemfunc_access_expr,
1449 (get_member_function_from_ptrfunc): Likewise.
1450
1451 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
1452
1453 * cp-objcp-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
1454
1455 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
1456
1457 * cp-tree.h (perform_integral_promotions): Remove.
1458 (default_conversion): Add.
1459
1460 2005-03-22 Mark Mitchell <mark@codesourcery.com>
1461
1462 * parser.c (cp_parser_warn_min_max): New function.
1463 (cp_parser_binary_expression): Use it.
1464 (cp_parser_assignment_operator_opt): Likewise.
1465 (cp_parser_operator): Likewise.
1466
1467 2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1468
1469 PR c++/19980
1470 * decl.c (start_preparsed_function): Robustify.
1471
1472 2005-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1473
1474 PR c++/20499
1475 * parser.c (cp_parser_class_head): Return NULL_TREE when
1476 encountering a redefinition.
1477
1478 2005-03-22 Nathan Sidwell <nathan@codesourcery.com>
1479
1480 PR c++/20465
1481 PR c++/20381
1482 * typeck.c (build_ptrmemfunc): Allow OFFSET_REF when processing a
1483 template.
1484
1485 2005-03-21 Paolo Carlini <pcarlini@suse.de>
1486
1487 PR c++/20461
1488 PR c++/20536
1489 * init.c (emit_mem_initializers): Don't crash on undefined
1490 types.
1491
1492 2005-03-21 Paolo Carlini <pcarlini@suse.de>
1493
1494 PR c++/20147
1495 * semantics.c (finish_stmt_expr_expr): Return immediately
1496 if error_operand_p (expr).
1497
1498 2005-03-21 Joseph S. Myers <joseph@codesourcery.com>
1499
1500 * cp-tree.h (lvalue_or_else, lvalue_p): New.
1501 * typeck.c (lvalue_or_else): New. Call lvalue_error.
1502
1503 2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1504
1505 PR c++/20240
1506 * decl.c (decls_match): Compare context of VAR_DECL.
1507
1508 2005-03-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1509
1510 PR c++/20333
1511 * parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
1512 Check the return value of cp_parser_nested_name_specifier.
1513
1514 2005-03-18 Dale Johannesen <dalej@apple.com>
1515
1516 * cp/tree.c (cp_tree_equal): Handle SSA_NAME.
1517
1518 2005-03-18 Paolo Carlini <pcarlini@suse.de>
1519
1520 PR c++/20463
1521 * parser.c (cp_parser_diagnose_invalid_type_name):
1522 Check TYPE_BINFO (current_class_type) before attempting
1523 to emit inform messages.
1524
1525 2005-03-17 Paolo Carlini <pcarlini@suse.de>
1526
1527 PR c++/19966
1528 * cp-tree.h (grok_op_properties): Change return type to void.
1529 * decl.c (grok_op_properties): Return early - don't check the
1530 arity - in case of a static member or an operator that cannot
1531 be non-member; tidy a bit.
1532
1533 2005-03-17 Nathan Sidwell <nathan@codesourcery.com>
1534
1535 PR c++/20186
1536 * pt.c (contains_dependent_cast_p): Remove.
1537 (fold_non_dependent_expr): Don't use it.
1538 (value_dependent_expression_p): Use a switch statement.
1539 reference_exprs can be dependent.
1540
1541 2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1542
1543 PR c++/4403
1544 PR c++/9783, DR433
1545 * name-lookup.c (pushtag): Skip template parameter scope when
1546 scope is ts_global. Don't push tag into template parameter
1547 scope.
1548 * pt.c (instantiate_class_template): Reorder friend class
1549 template substitution to handle non-dependent friend class
1550 that hasn't been previously declared.
1551
1552 2005-03-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1553
1554 Friend class name lookup 5/n
1555 PR c++/1016
1556 * cp-tree.h (pushtag): Adjust declaration.
1557 * decl.c (lookup_and_check_tag): Call lookup_type_scope if
1558 lookup_name fails.
1559 (xref_tag): Adjust call to pushtag. Make hidden class visible.
1560 (start_enum): Adjust call to pushtag.
1561 * name-lookup.c (ambiguous_decl): Ignore hidden names.
1562 (qualify_lookup): Change return type to bool.
1563 (hidden_name_p): New function.
1564 (lookup_namespace_name, unqualified_namespace_lookup,
1565 lookup_name_real): Use it.
1566 (lookup_type_scope): Update comments.
1567 (maybe_process_template_type_declaration): Change parameter name
1568 from globalize to is_friend.
1569 (pushtag): Change globalize parameter of type int to tag_scope.
1570 Hide name if introduced by friend declaration.
1571 * name-lookup.h (hidden_name_p): Add declaration.
1572 * parser.c (cp_parser_lookup_name): Don't deal with hidden name
1573 here.
1574 * pt.c (push_template_decl_real): Make hidden class template
1575 visible.
1576 (lookup_template_class, instantiate_class_template): Adjust call
1577 to pushtag.
1578 * semantics.c (begin_class_definition): Likewise.
1579 * rtti.c (init_rtti_processing, build_dynamic_cast_1,
1580 tinfo_base_init, emit_support_tinfos): Use ts_current instead of
1581 ts_global.
1582
1583 2005-03-13 Mark Mitchell <mark@codesourcery.com>
1584
1585 PR c++/20157
1586 * pt.c (determine_specialization): Reject non-specializations.
1587
1588 2005-03-11 Per Bothner <per@bothner.com>
1589
1590 * cp-tree.h (struct cp_declarator): New id_loc field.
1591 * cp/parser.c (cp_lexer_get_preprocessor_token): Set cp_token's
1592 location using c_lex_with_flags, instead of input_location.
1593 (cp_parser_direct_declarator): Set declarator's id_loc from
1594 cp_token's id_loc.
1595
1596 2005-03-10 Jakub Jelinek <jakub@redhat.com>
1597
1598 PR c++/18384, c++/18327
1599 * decl.c (reshape_init_array): Use UHWI type for max_index_cst
1600 and index. Convert max_index to size_type_node if it isn't
1601 host_integerp (, 1).
1602
1603 2005-03-09 Mark Mitchell <mark@codesourcery.com>
1604
1605 PR c++/20208
1606 * pt.c (tsubst_decl): Apply array-to-pointer and
1607 function-to-pointer conversions to function arguments.
1608 (regenerate_decl_from_template): Likewise.
1609
1610 2005-03-09 Paolo Carlini <pcarlini@suse.de>
1611
1612 PR c++/16859
1613 * decl.c (complete_array_type): In pedantic mode, return
1614 3 for an empty initializer list as the initializer for an
1615 array of unknown bound (8.5.1/4).
1616 (maybe_deduce_size_from_array_init): Fix final test to use
1617 the above.
1618
1619 2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
1620
1621 PR c++/20186
1622 * pt.c (contains_dependent_cast_p): New.
1623 (fold_non_dependent_expr): Call it.
1624
1625 2005-03-08 Mark Mitchell <mark@codesourcery.com>
1626
1627 PR c++/20142
1628 * cp-tree.h (target_type): Remove.
1629 * decl.c (layout_var_decl): Remove #if 0'd code.
1630 (cp_finish_decl): Remove dead code.
1631 * init.c (build_vec_init): When determining whether or not the
1632 element type has an asignment operator, look through all array
1633 dimensions.
1634 * typeck.c (target_type): Remove.
1635
1636 2005-03-07 Mark Mitchell <mark@codesourcery.com>
1637
1638 * class.c (finish_struct_1): Do not warn about non-virtual
1639 destructors in Java classes.
1640
1641 2005-03-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1642
1643 PR c++/19311
1644 * init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
1645 * pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
1646 for OFFSET_TYPE.
1647 * typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
1648 Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
1649 (build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
1650 template.
1651
1652 2005-03-02 Alexandre Oliva <aoliva@redhat.com>
1653
1654 * name-lookup.c (push_overloaded_decl): Don't error if the new
1655 decl matches the old one.
1656 * decl.c (redeclaration_error_message): Likewise.
1657
1658 2005-03-01 Per Bothner <per@bothner.com>
1659
1660 * decl.c (finish_function): Use SET_EXPR_LOCATION instead of
1661 unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
1662
1663 2005-03-01 Nathan Sidwell <nathan@codesourcery.com>
1664
1665 PR c++/20232
1666 * class.c (update_vtable_entry_for_fn): Don't crash on invalid
1667 covariancy.
1668
1669 * cp-tree.g (THUNK_TARGET): Expand comment.
1670 * method.c (use_thunk): Make sure we also use the target, if that
1671 is a thunk.
1672
1673 2005-02-27 Jakub Jelinek <jakub@redhat.com>
1674
1675 PR c++/20206
1676 * decl.c (cxx_comdat_group): Put thunks for
1677 TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
1678 comdat group as the thunk target.
1679
1680 2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1681
1682 * call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
1683 parser.c: Fix comment typo(s).
1684
1685 2005-02-24 Jakub Jelinek <jakub@redhat.com>
1686
1687 PR c++/20175
1688 * decl.c (reshape_init): Don't warn about missing braces if STRING_CST
1689 initializes a char/wchar_t array.
1690
1691 2005-02-23 Mark Mitchell <mark@codesourcery.com>
1692
1693 PR c++/19878
1694 * decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
1695 with internal linkage.
1696
1697 2005-02-23 Alexandre Oliva <aoliva@redhat.com>
1698
1699 * decl.c (grokvardecl): Don't exempt anonymous types from having
1700 linkage for variables that have linkage other than "C".
1701
1702 2005-02-23 Kazu Hirata <kazu@cs.umass.edu>
1703
1704 * cp-objcp-common.h, error.c: Update copyright.
1705
1706 2005-02-22 Mark Mitchell <mark@codesourcery.com>
1707
1708 PR c++/20073
1709 * decl.c (start_decl_1): Don't clear TREE_READONLY.
1710 (cp_finish_decl): Likewise.
1711 (complete_vars): Call cp_apply_type_quals_to_decl.
1712 * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
1713 cases where that's not valid.
1714
1715 PR c++/19991
1716 * init.c (integral_constant_value): Iterate if the value of a decl
1717 is itself a constant.
1718
1719 PR c++/20152
1720 * parser.c (cp_parser_class_head): Check for redefintions here.
1721 * semantics.c (begin_class_definition): Not here.
1722
1723 PR c++/20153
1724 * decl2.c (build_anon_union_vars): Add type parameter.
1725 (finish_anon_union): Pass it.
1726
1727 PR c++/20148
1728 * error.c (dump_expr): Do not print the body of a BIND_EXPR.
1729 Handle STATEMENT_LIST.
1730
1731 PR c++/19883
1732 * parser.c (cp_parser_direct_declarator): Always complain about
1733 non-constant array bounds when in a function scope.
1734 * semantics.c (finish_id_expression): Do not mark dependent names
1735 as non-constant.
1736
1737 2005-02-21 Douglas Gregor <dgregor@cs.indiana.edu>
1738
1739 PR c++/19076
1740 PR c++/6628
1741 * cp-tree.h (cp_apply_type_quals_to_decl): Declared.
1742 * decl.c (grokdeclarator): Pedwarn about qualifying a function
1743 type.
1744 Add qualifiers when declaring a typedef of a function type.
1745 Member function pointers pick up the qualifiers of the typedef
1746 used to declare them.
1747 Don't complain about creating cv-qualified function types.
1748 Complain about qualified function typedefs that are used to
1749 declare non-static member functions or free functions.
1750 Use cp_apply_type_quals_to_decl.
1751 (start_preparsed_function): Use cp_apply_type_quals_to_decl.
1752 (grokclassfn): Use cp_apply_type_quals_to_decl.
1753 * error.c (dump_type_suffix): Print qualifiers for function
1754 types.
1755 * pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
1756 (tsubst): When substituting a function type into a member
1757 pointer type, pass along the qualifiers.
1758 (unify): Unify member pointers to member function pointers.
1759 * tree.c (cp_build_qualified_type_real): Function types may be
1760 qualified. This includes restrict qualifiers.
1761 * typeck.c (cp_apply_type_quals_to_decl): New function to replace
1762 use of c_apply_type_quals_to_decl. Drops qualifiers that are being
1763 added to function types.
1764
1765 2005-02-20 Zack Weinberg <zack@codesourcery.com>
1766
1767 PR 18785
1768 * cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
1769 c_common_to_target_charset. Delete bogus comment.
1770
1771 2005-02-18 Richard Henderson <rth@redhat.com>
1772
1773 PR libstdc++/10606
1774 * except.c (do_get_exception_ptr): New.
1775 (expand_start_catch_block): Use it.
1776
1777 2005-02-19 Jakub Jelinek <jakub@redhat.com>
1778
1779 * decl.c (start_decl_1): Only check TYPE_NEEDS_CONSTRUCTING
1780 if type is not error_mark_node.
1781
1782 2005-01-20 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1783
1784 PR c++/19508
1785 * decl2.c (grokfield): Do not apply attributes to template parameters
1786 as they are ignored by tsubst anyway.
1787
1788 2005-02-18 Jakub Jelinek <jakub@redhat.com>
1789
1790 PR c++/19813
1791 * decl.c (start_decl_1): Clear TREE_READONLY flag if
1792 its type has TYPE_NEEDS_CONSTRUCTING.
1793 (complete_vars): Likewise.
1794
1795 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
1796
1797 PR c++/20028
1798 * class.c (finish_struct): Initialize TYPE_SIZE_UNIT of a
1799 template along with TYPE_SIZE.
1800
1801 PR c++/20022
1802 * semantics.c (perform_deferred_access_checks): Use
1803 get_deferred_access_checks to get the top of the stack.
1804
1805 2005-02-15 Alexandre Oliva <aoliva@redhat.com>
1806
1807 PR c++/17788
1808 * class.c (add_implicitly_declared_members, check_field_decl)
1809 (check_field_decls, check_bases): Remove arguments, tests and
1810 assignments of cant_have_default_ctor-related variables.
1811
1812 2005-02-15 Alexandre Oliva <aoliva@redhat.com>
1813
1814 * decl2.c (mark_used): Set the source location of the used decl to
1815 the current input location here...
1816 * method.c (synthesize_method): ... not here. Set input_location
1817 from the decl instead.
1818
1819 2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
1820
1821 PR c++/19608
1822 * parser.c (cp_parser_late_parsing_for_member): Use
1823 current_function_decl as scope to push to and from.
1824
1825 PR c++/19884
1826 * pt.c (check_explicit_specialization): Make sure namespace
1827 binding lookup found an overloaded function.
1828 (lookup_template_function): Just assert FNS is an overloaded
1829 function.
1830
1831 PR c++/19895
1832 * decl.c (grokdeclarator): Check for error mark node in ptrmem
1833 construction.
1834
1835 2005-02-14 Alexandre Oliva <aoliva@redhat.com>
1836
1837 PR c++/17816
1838 * decl.c (redeclaration_error_message): Report redefinition of
1839 pure virtual function.
1840
1841 2005-02-14 Nathan Sidwell <nathan@codesourcery.com>
1842
1843 PR c++/19891
1844 * class.c (build_simple_base_path): Build the component_ref
1845 directly.
1846 (update_vtable_entry_for_fn): Walk the covariant's binfo chain
1847 rather than using lookup_base.
1848 * search.c (dfs_walk_once): Add non-recursive assert check.
1849 * typeck.c (build_class_member_access_expr): It is possible for
1850 the member type to be both const and volatile.
1851
1852 2005-02-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1853
1854 PR c++/14479
1855 PR c++/19487
1856 * pt.c (maybe_check_template_type): Remove.
1857 * cp-tree.h (maybe_check_template_type): Remove prototype.
1858 * name-lookup.c (maybe_process_template_type_declaration): Don't
1859 use maybe_check_template_type.
1860
1861 2005-02-11 Richard Henderson <rth@redhat.com>
1862
1863 PR c++/19632
1864 * pt.c (get_mostly_instantiated_function_type): Save and restore
1865 flag_access_control instead of push/pop_access_scope.
1866
1867 2005-02-10 Mark Mitchell <mark@codesourcery.com>
1868
1869 PR c++/19755
1870 * decl.c (reshape_init): Issue warnings about missing braces.
1871
1872 2005-02-11 Kazu Hirata <kazu@cs.umass.edu>
1873
1874 * cp-tree.def, except.c, ptree.c: Update copyright.
1875
1876 2005-02-09 Mark Mitchell <mark@codesourcery.com>
1877
1878 PR c++/19811
1879 * call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
1880 attempting name lookup.
1881
1882 * parser.c (cp_parser_unqualified_id): Initialize type_decl.
1883
1884 PR c++/19787
1885 * call.c (initialize_reference): Robustify.
1886
1887 PR ++/19732
1888 * decl.c (grokdeclarator): Check for invalid use of destructor
1889 names.
1890
1891 PR c++/19762
1892 * parser.c (cp_parser_unqualified_id): Avoid creating destructor
1893 names with invalid types.
1894
1895 PR c++/19826
1896 * parser.c (cp_parser_direct_declarator): Allow type-dependent
1897 expressions as array bounds.
1898
1899 PR c++/19739
1900 * parser.c (cp_parser_attributes_list): Allow empty lists.
1901
1902 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1903
1904 PR c++/19733
1905 * class.c (add_method): Don't set TYPE_HAS_DESTRUCTOR.
1906 (check_bases): Give warnings about a base class with a
1907 non-virtual destructor, even if it is implicit.
1908 (finish_struct_bits): Don't copy TYPE_HAS_DESTRUCTOR.
1909 (maybe_warn_about_overly_private_class): Don't use
1910 TYPE_HAS_DESTRUCTOR.
1911 (finish_struct_methods): Don't set TYPE_HAS_DESTRUCTOR.
1912 (check_for_override): Give it external linkage.
1913 (add_implicitly_declared_members): Generate destructors lazily.
1914 (check_field_decls): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
1915 TYPE_HAS_DESTRUCTOR.
1916 (check_bases_and_members): Call check_methods before
1917 check_field_decls.
1918 (check_bases_and_members): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR, not
1919 TYPE_HAS_DESTRUCTOR.
1920 (finish_struct_1): Do not use TYPE_HAS_DESTRUCTOR.
1921 * cp-tree.def (PSEUDO_DTOR_EXPR): Document.
1922 * cp-tree.h (TYPE_HAS_DESTRUCTOR): Remove.
1923 (lang_type_class): Add lazy_destructor.
1924 (CLASSTYPE_LAZY_DESTRUCTOR): New macro.
1925 (CLASSTYPE_DESTRUCTORS): Robustify.
1926 (TYPE_HAS_DESTRUCTOR): Remove.
1927 (check_for_override): Declare.
1928 (build_vbase_delete): Remove.
1929 * cvt.c (convert_to_void): Issue errors about pseudo-destructor
1930 expressions.
1931 * decl.c (cxx_maybe_build_cleanup): Remove dead code.
1932 * except.c (dtor_nothrow): Lazily create destructors if necessary.
1933 (build_throw): Use TYPE_HAS_NONTRIVIAL_DESTRUCTOR.
1934 * init.c (build_delete): Lazily create destructors, if necessary.
1935 (build_vbase_delete): Remove.
1936 * method.c (locate_dtor): Simplify.
1937 (implicitly_declare_fn): Add support for destructors.
1938 * parser.c (cp_parser_lookup_name): Lazily create destructors, if
1939 necessary.
1940 * pt.c (check_explicit_specialization): Don't use
1941 TYPE_HAS_DESTRUCTOR.
1942 (instantiate_class_template): Likewise.
1943 * ptree.c (cxx_print_type): Don't print TYPE_HAS_DESTRUCTOR.
1944 * rtti.c (emit_support_tinfos): Robustify.
1945 * search.c (lookup_fnfields_1): Lazily create destructors.
1946 * typeck.c (build_class_member_access_expr): Remove
1947 PSEUDO_DTOR_EXPR handling.
1948 (lookup_destructor): Likewise.
1949
1950 2005-02-08 Kazu Hirata <kazu@cs.umass.edu>
1951
1952 * cxx-pretty-print.c, cxx-pretty-print.h, decl.h: Update
1953 copyright.
1954
1955 2005-02-07 Mark Mitchell <mark@codesourcery.com>
1956
1957 * parser.c (cp_lexer_start_debugging): Avoid arithmetic operations
1958 on boolean variables.
1959 (cp_lexer_stop_debugging): Likewise.
1960
1961 2005-02-03 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1962
1963 PR c++/17401
1964 * parser.c (cp_parser_pure_specifier): Emit a specific error
1965 message with an invalid pure specifier.
1966 * decl2.c (grok_function_init): Remove.
1967 (grokfield): An initializer for a method is a always a pure
1968 specifier.
1969
1970 2005-02-02 Matt Austern <austern@apple.com>
1971
1972 PR c++/19628
1973 * cp-tree.h (builtin_valid_in_constant_expr_p): Declare.
1974 * parser.c (cp_parser_postfix_expression): Accept function call in
1975 constant expression if builtin_valid_in_constant_expr_p is true
1976 for that function.
1977 * pt.c (value_dependent_expression_p): Handle CALL_EXPRs properly.
1978 * semantics.c (finish_id_expression): Accept function call in constant
1979 expression if builtin_valid_in_constant_expr_p is true for that
1980 function.
1981 * tree.c (builtin_valid_in_constant_expr_p): New.
1982
1983 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1984
1985 PR c++/17413
1986 * pt.c (check_instantiated_args): Improve error message.
1987 Fix logic when to print its second part.
1988
1989 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1990
1991 * cp-tree.h (complete_type_or_else): Remove macro.
1992 (complete_type_or_diagnostic): Rename to complete_type_or_else
1993 and remove last argument.
1994 * typeck.c (complete_type_or_diagnostic): Rename to
1995 complete_type_or_else and remove last argument.
1996
1997 2005-02-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1998
1999 * cp-tree.h (commonparms): Remove prototype.
2000 (convert_arguments): Likewise.
2001 (PFN_FROM_PTRMEMFUNC): Remove.
2002 * typeck.c (commonparms): Make static.
2003 (convert_arguments): Add prototype. Make static.
2004 (PFN_FROM_PTRMEMFUNC): Replace by pfn_from_ptrmemfunc.
2005
2006 2005-01-31 Mark Mitchell <mark@codesourcery.com>
2007
2008 * parser.c (cp_parser_primary_expression): Don't complain about
2009 floating-point literals in integral constant expressions when
2010 !pedantic.
2011
2012 2005-02-01 Alexandre Oliva <aoliva@redhat.com>
2013
2014 * parser.c (cp_parser_template_id): Revert comment patch too.
2015
2016 PR c++/18757
2017 PR c++/19366
2018 PR c++/19499
2019 * parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
2020 Issue an error when creating the template id.
2021 * pt.c (fn_type_unification): Return early if the explicit
2022 template arg list is an error_mark_node.
2023
2024 2005-01-31 Mark Mitchell <mark@codesourcery.com>
2025
2026 * decl.c (build_enumerator): Do not issue duplicate error messages
2027 about invalid enumeration constants.
2028 * parser.c (cp_parser_non_integral_constant_expression): Always
2029 set parser->non_integral_constant_expression_p.
2030 (cp_parser_primary_expression): Add cast_p parameter. Issue
2031 errors about invalid uses of floating-point literals in
2032 cast-expressions.
2033 (cp_parser_postfix_expression): Add cast_p parameter.
2034 (cp_parser_open_square_expression): Pass it.
2035 (cp_parser_parenthesized_expression_list): Add cast_p parameter.
2036 (cp_parser_unary_expression): Likewise.
2037 (cp_parser_new_placement): Pass it.
2038 (cp_parser_direct_new_declarator): Likewise.
2039 (cp_parser_new_initializer): Likewise.
2040 (cp_parser_cast_expression): Add cast_p parameter.
2041 (cp_parser_binary_expression): Likewise.
2042 (cp_parser_question_colon_clause): Likewise.
2043 (cp_parser_assignment_expression): Likewise.
2044 (cp_parser_expression): Likewise.
2045 (cp_parser_constant_expression): If an integral constant
2046 expression is invalid, return error_mark_node.
2047 (cp_parser_expression_statement): Pass cast_p.
2048 (cp_parser_condition): Likewise.
2049 (cp_parser_iteration_statement): Likewise.
2050 (cp_parser_jump_statement): Likewise.
2051 (cp_parser_mem_initializer): Likewise.
2052 (cp_parser_template_argument): Likewise.
2053 (cp_parser_parameter_declaration): Likewise.
2054 (cp_parser_initializer): Likewise.
2055 (cp_parser_throw_expression): Likewise.
2056 (cp_parser_attribute_list): Likewise.
2057 (cp_parser_simple_cast_expression): Likewise.
2058 (cp_parser_functional_cast): Likewise.
2059 (cp_parser_late_parsing_default_args): Likewise.
2060 (cp_parser_sizeof_operand): Save/restore
2061 non_integral_constant_expression_p.
2062
2063 2005-01-31 Mike Stump <mrs@apple.com>
2064
2065 * parser.c (cp_lexer_new_main): Get the first token, first, before
2066 doing anything.
2067
2068 2005-01-31 Mark Mitchell <mark@codesourcery.com>
2069
2070 * decl.c (start_decl): Add missing parentheses.
2071
2072 2005-01-30 Mark Mitchell <mark@codesourcery.com>
2073
2074 PR c++/19555
2075 * cp-tree.h (DECL_USE_TEMPLATE): Expand documentation.
2076 * decl.c (duplicate_decls): Do not discard
2077 DECL_IMPLICIT_INSTANTIATION when merging declarations.
2078 (start_decl): Do not SET_DECL_TEMPLATE_SPECIALIZATION for
2079 variables that do not have DECL_USE_TEMPLATE.
2080
2081 PR c++/19395
2082 * decl.c (grokdeclarator): Refactor code so that qualified names
2083 are never allowed as the declarator in a typedef.
2084
2085 PR c++/19367
2086 * name-lookup.c (do_nonmember_using_decl): Avoid overloading
2087 builtin declarations.
2088
2089 PR c++/19457
2090 * call.c (convert_like_real): Inline call to
2091 dubious_conversion_warnings here.
2092 * cp-tree.h (dubious_conversion_warnings): Remove.
2093 * semantics.c (finish_unary_op_expr): Copy INTEGER_CSTs before
2094 setting TREE_NEGATED_INT.
2095 * typeck.c (dubious_conversion_warnings): Remove.
2096
2097 PR c++/19349
2098 * name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd
2099 memory.
2100
2101 2005-01-28 Mark Mitchell <mark@codesourcery.com>
2102
2103 PR c++/19253
2104 * parser.c (cp_parser_diagnose_invalid_type_name): Commit to
2105 tentative parses.
2106
2107 PR c++/19667
2108 * pt.c (redeclare_class_template): Robustify.
2109
2110 2005-01-27 Steven Bosscher <stevenb@suse.de>
2111
2112 * decl.c (finish_case_label): Use SWITCH_STMT accessor macros
2113 instead of SWITCH_EXPR ones.
2114 * pt.c (tsubst_expr): Likewise.
2115 * semantics.c (begin_switch_stmt, finish_switch_cond,
2116 finish_switch_stmt): Likewise.
2117
2118 2005-01-26 J"orn Rennecke <joern.rennecke@st.com>
2119
2120 PR c++/18370
2121 * parser.c (cp_parser_initializer_clause): Initialize *non_constant_p.
2122
2123 2005-01-25 Andrew Pinski <pinskia@physics.uc.edu>
2124
2125 * class.c (abort_fndecl_addr): New variable.
2126 (build_vtbl_initializer): If we have a pure virtual function
2127 share the abort function's address.
2128 Include gt-cp-class.h at the end.
2129 * config-lang.in (gtfiles): Add cp/class.c.
2130
2131 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2132
2133 * cxx-pretty-print.c (pp_cxx_statement): Add prototype. Make static.
2134 (pp_cxx_function_definition): Make static.
2135 * cxx-pretty-print.h (pp_cxx_statement): Remove prototype.
2136 (pp_cxx_function_definition): Likewise.
2137
2138 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2139
2140 * name-lookup.c (print_binding_level): Make static.
2141 (constructor_name_full): Make static inline.
2142 (current_decl_namespace): Make static.
2143 * name-lookup.h (constructor_name_full): Remove prototype.
2144 (print_binding_level): Likewise.
2145 (current_decl_namespace): Likewise.
2146
2147 2005-01-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2148
2149 * decl.h (debug_bindings_indentation): Remove.
2150
2151 2005-01-23 Kazu Hirata <kazu@cs.umass.edu>
2152
2153 * typeck.c: Fix a comment typo.
2154
2155 2005-01-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2156
2157 PR c++/19208
2158 * pt.c (fold_decl_constant_value): Always call fold_non_dependent_expr
2159 at least once.
2160 (tsubst): Use fold_decl_constant_value in place of a bare call to
2161 integral_constant_value.
2162
2163 2005-01-20 Kazu Hirata <kazu@cs.umass.edu>
2164
2165 * typeck.c (more_qualified_p): Remove.
2166 * cp-tree.h: Remove the corresponding prototype.
2167
2168 2005-01-19 Matt Austern <austern@apple.com>
2169
2170 * typeck.c (comptypes): Handle return code from objc_comptypes
2171 correctly.
2172
2173 2005-01-19 Kazu Hirata <kazu@cs.umass.edu>
2174
2175 * cp-tree.h, name-lookup.h: Remove unused prototypes.
2176
2177 2005-01-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2178
2179 PR c++/19375
2180 * semantics.c (finish_id_expression): Disable access checking for
2181 already lookuped FIELD_DECL.
2182
2183 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
2184
2185 * decl.c (delete_block): Remove.
2186 * cp-tree.h: Remove the corresponding prototype.
2187
2188 * decl.c (vtable_decl_p, vtype_decl_p, walk_globals_data,
2189 walk_vtables_r, walk_vtables, walk_globals_r, walk_globals):
2190 Remove.
2191 * cp-tree.h: Remove the corresponding prototypes.
2192
2193 * tree.c (count_functions, bound_pmf_p, cp_is_overload_p,
2194 cp_update_decl_after_saving, name_p): Remove.
2195 * cp-tree.h: Remove the corresponding prototypes.
2196
2197 2005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
2198
2199 PR c/19472
2200 * semantics.c (finish_asm_stmt): Strip nops off
2201 input memory operands.
2202
2203 2005-01-18 Kazu Hirata <kazu@cs.umass.edu>
2204
2205 * Make-lang.in, call.c, cvt.c, init.c, rtti.c, tree.c,
2206 typeck2.c: Update copyright.
2207
2208 2005-01-16 Kazu Hirata <kazu@cs.umass.edu>
2209
2210 * class.c (get_enclosing_class): Remove.
2211 * cp-tree.h: Remove the corresponding prototypes.
2212
2213 * cvt.c (convert_lvalue): Remove.
2214 * cp-tree.h: Remove the corresponding prototype.
2215
2216 * pt.c (tinst_for_decl): Remove.
2217 * cp-tree.h: Remove the corresponding prototypes.
2218
2219 * tree.c (hash_chainon): Remove.
2220 * cp-tree.h: Remove the corresponding prototypes.
2221
2222 2005-01-15 Jakub Jelinek <jakub@redhat.com>
2223
2224 PR c++/19263
2225 * typeck2.c (split_nonconstant_init_1) <case VECTOR_TYPE>: Put a copy
2226 of CONSTRUCTOR's node into MODIFY_EXPR, as the original is modified.
2227
2228 2005-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2229
2230 * Make-lang.in (cp-warn): Don't append $(WERROR).
2231
2232 2005-01-10 Kazu Hirata <kazu@cs.umass.edu>
2233
2234 * cp-tree.h: Fix a comment typo.
2235
2236 2005-01-07 Nathan Sidwell <nathan@codesourcery.com>
2237
2238 PR c++/19298
2239 * pt.c (tsubst_qualified_id): Call convert_from_reference.
2240
2241 2005-01-06 Mark Mitchell <mark@codesourcery.com>
2242
2243 PR c++/19244
2244 * class.c (add_implicitly_declared_members): Remove dead code.
2245 * decl.c (grokfndecl): Add sfk parameter. Use it do set
2246 DECL_CONSTRUCTOR_P.
2247 (grokdeclarator): Adjust calls to grokfndecl.
2248 * method.c (implicitly_declare_fn): Improve documentation.
2249 * parser.c (cp_parser_direct_declarator): Do not consider a
2250 function to be a constructor if the containing class was
2251 originally anonymous.
2252
2253 2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2254
2255 PR c++/17154
2256 * search.c (lookup_field_1): Handle using declaration in
2257 class template partial specialization.
2258
2259 2005-01-06 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
2260
2261 PR c++/19258
2262 * pt.c (push_access_scope): Handle friend defined in class.
2263 (pop_access_scope): Likewise.
2264
2265 2005-01-06 Nathan Sidwell <nathan@codesourcery.com>
2266
2267 PR c++/19270
2268 * pt.c (tsubst_copy) <ARRAY_REF case>: Handle separately.
2269 (tsubst_copy_and_build) <ARRAY_REF case>: Remove obsolete
2270 array-new handling code. Use build_x_binary_op.
2271
2272 2005-01-05 Nathan Sidwell <nathan@codesourcery.com>
2273
2274 PR c++/19030
2275 * cp-tree.h (start_decl): Take pointer to pushed scope, not bool.
2276 * name-lookup.h (push_scope): Return pushed scope, not flag.
2277 * name-lookup.c (push_scope): Return scope that should be popped,
2278 not a flag.
2279 * decl.c (start_decl): Adjust.
2280 (grokfndecl): Adjust scope push and pop.
2281 * decl2.c (check_classfn): Likewise.
2282 * parser.c (cp_parser_condition, cp_parser_conversion_function_id,
2283 cp_parser_init_declarator, cp_parser_direct_declarator,
2284 cp_parser_class_specifier, cp_parser_class_head,
2285 cp_parser_lookup_name,
2286 cp_parser_constructor_declarator_p): Likewise.
2287 * pt.c (instantiate_class_template,
2288 resolve_typename_type): Likewise.
2289
2290 2005-01-03 Volker Reichelt <reichelt@igpm.rwth-aaachen.de>
2291
2292 PR c++/14136
2293 * parser.c (cp_parser_unqualified_id): Do not issue error message
2294 for typedef-name as destructor declarator when performing an
2295 uncommitted tentative parse.
2296
2297 2005-01-01 Steven Bosscher <stevenb@suse.de>
2298
2299 PR middle-end/17544
2300 * decl.c (finish_function): Fix comment. Annotate the compiler
2301 generated return with the current file name and line 0.
2302