OSDN Git Service

1ac313bbf2b53e130e252d3d51d6135c0d848566
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
1 2006-10-11  Mark Mitchell  <mark@codesourcery.com>
2
3         PR c++/29175
4         * decl.c (check_initializer): Issue errors about trying to
5         initialize arrays whose elements have variable size.
6
7 2006-10-11  Lee Millward  <lee.millward@codesourcery.com>
8
9         PR c++/29024
10         * cp-tree (struct cp_decl_specifier_seq): Rename to 
11         conflicting_specifiers_p
12         * parser.c (cp_parser_set_storage_class): Set
13         conflicting_specifiers_p for the input decl specifier 
14         if a typedef specifier is present. Rename uses of
15         multiple_specifiers_p to conflicting_specifiers_p.
16         (cp_parser_decl_specifier_seq) <RID_TYPEDEF>: If a storage 
17         class specifier has already been set for this declaration, 
18         set conflicting_specifiers_p to true on the decl_specs.
19         * decl.c (grokdeclarator): Rename uses of
20         multiple_specifiers_p to conflicting_specifiers_p.
21
22 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
23
24         * Make-lang.in: Added "c++.pdf" target support.
25
26 2006-10-10  Richard Guenther  <rguenther@suse.de>
27
28         PR rtl-optimization/29323
29         * decl.c (finish_function): Set TREE_NOTHROW only for
30         functions that bind local.
31
32 2006-10-09  Richard Henderson  <rth@redhat.com>
33
34         Revert emutls patch.
35
36 2006-10-04  Richard Henderson  <rth@redhat.com>
37             Jakub Jelinek  <jakub@redhat.com>
38
39         * decl.c (grokvardecl): Don't error if !have_tls.
40         (grokdeclarator): Likewise.
41         * parser.c (cp_parser_omp_threadprivate): Likewise.
42
43 2006-10-03  Mark Mitchell  <mark@codesourcery.com>
44
45         PR c++/29020
46         * friend.c (do_friend): Improve comments; add assertion.
47         * parser.c (cp_parser_nested_name_specifier_opt): Resolve
48         typenames for qualified names used in declarations, even when
49         caching qualified name lookup.
50
51         PR c++/29138
52         * decl2.c (grokfield): Don't handle access declarations here.
53         * parser.c (cp_parser_using_declaration): Handle access
54         declarations too.
55         (cp_parser_block_declaration): Adjust calls to
56         cp_parser_using_declaration.
57         (cp_parser_member_declaration): Likewise.  Use
58         cp_parser_using_declaration to look for access_declarations.
59
60 2006-10-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
61
62         PR c++/29291
63         * init.c (build_new): Check for invalid init.
64
65 2006-10-02  Mark Mitchell  <mark@codesourcery.com>
66
67         PR c++/29226
68         * typeck.c (cxx_sizeof_or_alignof_type): Tidy.  In templates, do
69         not try to actually evaluate sizeof for a VLA type.
70
71 2006-10-01  Mark Mitchell  <mark@codesourcery.com>
72
73         PR c++/29105
74         * pt.c (tsubst_baselink): Substituteinto the qualifying scope.
75         * semantics.c (baselink_for_fns): Build a baselink, even when
76         processing a template.
77
78         PR c++/29080
79         * parser.c (cp_parser_postfix_dot_deref_expression): Use
80         BASELINK_ACCESS_BINFO as the qualifying scope when calling
81         adjust_result_of_qualified_name_lookup. 
82
83 2006-09-25  Lee Millward  <lee.millward@codesourcery.com>
84
85         PR c++/27329
86         PR c++/26938
87         * cp-tree.h (redeclare_class_template): Adjust declaration
88         to return bool instead of void.
89         * pt.c (redeclare_class_template): Update definition.
90         Return false on error.
91         * decl.c (xref_tag): Return error_mark_node if
92         redeclare_class_template returned false.
93
94         PR c++/27667
95         * cp-tree.h (begin_specialization): Return bool 
96         instead of void.
97         * pt.c (check_specialization_scope): Likwise. 
98         Adjust comment. Return false if a specialization 
99         isn't permitted in the current scope.
100         (begin_specialization): Use the return value of  
101         check_specialization_scope.
102         * parser.c (cp_parser_explicit_specialization): If
103         begin_specialization returned false, skip the rest 
104         of the specialization.
105         
106 2006-09-21  Mark Mitchell  <mark@codesourcery.com>
107
108         PR c++/29016
109         * typeck.c (build_unary_op): Don't form an ADDR_EXPR around a
110         BASELINK.
111
112 2006-09-21  Lee Millward  <lee.millward@codesourcery.com>
113
114         PR c++/28861
115         * decl.c (shadow_tag): Return error_mark_node
116         if maybe_process_partial_specialization failed.
117
118         PR c++/28303
119         * decl.c (grokdeclarator): Return error_mark_node on
120         declaration with two or more data types.
121         
122 2006-09-20  Danny Smith  <dannysmith@users.sourceforge.net>
123
124         PR target/27650
125         * class.c (check_for_override): Remove dllimport from virtual
126         methods.
127
128 2006-09-18  Steven Bosscher  <steven@gcc.gnu.org>
129
130         PR c++/29087
131         * parser.c (cp_parser_labeled_statement): Return nothing.  Do
132         not take in_statement_expr and in_compound as arguments.  Rename
133         to cp_parser_label_for_labeled_statement.  Parse only the label,
134         not the statement.
135         (cp_parser_statement): Parse the statement of a labeled-statement
136         from here, using tail recursion.
137
138 2006-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
139
140         PR C++/29002
141         * init.c (build_zero_init): If we have an error mark node for
142         the array size, return.
143
144 2006-09-10  Mark Mitchell  <mark@codesourcery.com>
145
146         PR c++/28991
147         * cp-objcp-common.c (cxx_staticp): New function.
148         * cp-objcp-common.h (LANG_HOOOKS_STATICP): Use it.
149         * cp-tree.h (cxx_staticp): New function.
150
151 2006-09-09  Jason Merrill  <jason@redhat.com>
152
153         PR c++/28996
154         * cvt.c (convert_to_void): Strip COMPONENT_REF to functions.
155
156 2006-09-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
157
158         PR c++/28858
159         * parser.c (cp_parser_skip_until_found): Rename to
160         cp_parser_skip_to_end_of_template_parameter_list.  Remove last two
161         parameters.  Track levels of '< ... >'.  Stop at '{', '}', or ';'.
162         Reorganize.  Adjust comment.
163         (cp_parser_template_declaration_after_export): Adjust call.
164         (cp_parser_enclosed_template_argument_list): Likewise.
165
166 2006-09-07  Andrew Pinski  <pinskia@physics.uc.edu>
167
168         PR C++/28906
169         * init.c (build_new_1): Build a distinct type copy
170         for the array type that was returned from
171         build_cplus_array_type.
172
173 2006-09-07  Jason Merrill  <jason@redhat.com>
174
175         PR c++/27371
176         * cvt.c (convert_to_void): Enable previous change.
177
178         PR c++/26957
179         * method.c (use_thunk): Clear DECL_HAS_VALUE_EXPR_P on copied
180         parms.
181
182 2006-09-07  Simon Martin  <simartin@users.sourceforge.net>
183
184         PR c++/28284
185         * pt.c (fold_non_dependent_expr): Make sure expr is not
186         dereferenced if it is NULL.
187
188 2006-09-06  Zak Kipling  <zak@transversal.com>
189
190         PR c++/26195
191         * decl.c (make_rtl_for_nonlocal_decl),
192         (start_preparsed_function): Don't use lbasename on
193         input_filename when calling get_fileinfo.
194         * semantics.c (begin_class_definition): Likewise.
195         * lex.c (cxx_make_type): Likewise.
196         (handle_pragma_interface): Call get_fileinfo on input_filename,
197         not on the parameter to the directive.
198
199 2006-09-06  Mark Mitchell  <mark@codesourcery.com>
200
201         PR c++/28903
202         * pt.c (tsubst): Use fold_non_dependent_expr to fold array
203         dimensions.
204
205         PR c++/28886
206         * pt.c (unify): Avoid unnecessary calls to fold_build2 for array
207         dimensions.
208
209 2006-09-06  Jason Merrill  <jason@redhat.com>
210
211         PR c++/27371
212         * cvt.c (convert_to_void): Strip useless TARGET_EXPR.
213         * cp-tree.h (TARGET_EXPR_IMPLICIT_P): New macro.
214         * tree.c (build_cplus_new): Set it.
215
216         PR c++/26696
217         * cvt.c (convert_to_void): Replace a subexpression with no side 
218         effects with void_zero_node.
219         * tree.c (is_overloaded_fn): Look through COMPONENT_REF.
220         (get_first_fn): Ditto.
221         * decl.c (grokdeclarator): No need to look through COMPONENT_REF.
222
223 2006-09-05  Jason Merrill  <jason@redhat.com>
224
225         PR c++/26571
226         * parser.c (cp_parser_diagnose_invalid_type_name): Handle the case
227         where the name is a type used incorrectly.
228
229         PR c++/26671
230         * typeck.c (maybe_warn_about_returning_address_of_local): Look 
231         through COMPONENT_REF and ARRAY_REF.    
232
233         PR c++/26102
234         * name-lookup.c (do_class_using_decl): Try to find the base even
235         if bases_dependent_p.
236         * pt.c (type_dependent_expression_p): A USING_DECL is dependent.        
237
238         PR c++/19809
239         * pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl.
240
241 2006-09-04  Nathan Sidwell  <nathan@codesourcery.com>
242
243         PR 23287 Revert my 2006-09-01 patch.
244         * parser.c: Reverted.
245         * pt.c: Reverted.
246
247 2006-09-02  Lee Millward  <lee.millward@codesourcery.com>
248
249         PR c++/27670
250         PR c++/27493
251         PR c++/27494
252         PR c++/27397
253         * parser.c (cp_parser_template_parameter_list): Add
254         invalid template parameters to the parameter list as
255         error_mark_node.
256
257 2006-09-02  Jakub Jelinek  <jakub@redhat.com>
258
259         PR c++/28878
260         * except.c (build_throw): Only set current_function_returns_abnormally
261         if cfun is not NULL.
262
263         PR c++/26917
264         * repo.c (repo_file): Remove.
265         (open_repo_file, reopen_repo_file_for_write): Return fopened
266         FILE * instead of setting global repo_file variable.
267         (init_repo): Adjust caller.
268         (finish_repo): Likewise.  Return instead of goto out before
269         reopen_repo_file_for_write has been called.
270
271 2006-09-01  Nathan Sidwell  <nathan@codesourcery.com>
272
273         PR c++/28705
274         * semantics.c (finish_call_expr): Add assert.
275         * name-lookup.c (lookup_arg_dependent): Check we found an overload
276         or an object.
277
278         PR c++/23287
279         * parser.c (cp_parser_id_expression): Add member_p
280         argument. Update all callers.
281         (cp_parser_unqualified_id): Likewise.  Lookup a destructor name in
282         the object's scope, if valid.
283         (cp_parser_global_scope_opt): Add object_scope_valid_p.  Update
284         callers.
285         (cp_parser_postfix_dot_deref_expression): Set object_scope.
286         * pt.c (tsubst_copy_and_build): Lookup dependent dtor name here.
287
288 2006-08-30  Jason Merrill  <jason@redhat.com>
289
290         PR c++/26670
291         * class.c (check_field_decls): Don't unset TYPE_PACKED until all
292         the fields have been processed.
293
294 2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
295
296         PR C++/28349
297         * call.c (build_x_va_arg): Remove the reference type
298         from the type before creating the pointer type.
299
300 2006-08-29  J"orn Rennecke  <joern.rennecke@st.com>
301
302         PR c++/28139
303         * except.c (expand_start_catch_block): Use correct types for bitwise
304         copy.
305
306 2006-08-28  Jason Merrill  <jason@redhat.com>
307
308         PR c++/26670
309         * class.c (check_field_decls): Unset TYPE_PACKED (t) if one of the
310         fields can't be packed.
311
312         PR c++/26577
313         * cvt.c (convert_to_void): Don't automatically load from volatiles 
314         of TREE_ADDRESSABLE type.
315
316 2006-08-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
317
318         PR c++/28860
319         * cp-tree.h (maybe_process_partial_specialization): Return
320         tree instead of void.
321         * parser.c (cp_parser_class_head): Use return value of
322         maybe_process_partial_specialization.
323         * pt.c (maybe_process_partial_specialization): Return error_mark_node
324         for broken specializations, TYPE otherwise.  Check for template
325         template parameters.
326
327 2006-08-27  Mark Mitchell  <mark@codesourcery.com>
328
329         PR c++/28058
330         * pt.c (register_specialization): Return error_mark_node for
331         specialization-after-instantiation.
332         * decl2.c (mark_used): Mark the main function used when one of its
333         clones is used.
334         
335 2006-08-27  Lee Millward  <lee.millward@codesourcery.com>
336
337         PR c++/26573
338         * class.c (check_field_decls): Don't issue error about
339         local classes containing static data members.
340         
341 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
342
343         PR c++/24009
344         * parser.c (struct cp_token): Add input_file_stack_index.
345         (eof_token): Update.
346         (cp_lexer_get_preprocessor_token): Save input_file_stack_tick.
347         (cp_lexer_set_source_position_from_token): Restore input file
348         stack.
349
350 2006-08-26  Lee Millward  <lee.millward@codesourcery.com>
351
352         PR c++/28736
353         PR c++/28737
354         PR c++/28738
355         * pt.c (process_template_parm): Store invalid template
356         parameters as a TREE_LIST with a TREE_VALUE of error_mark_node.
357         (push_inline_template_parms_recursive): Check for template
358         parameters having a TREE_VALUE of error_mark_node rather than
359         check the parameter itself.
360         (mangle_class_name_for_template): Likewise.
361         (comp_template_parms): When comparing the individual template
362         parameters, return 1 if either is error_mark_node.
363         (current_template_args): Robustify.
364         (redeclare_class_template): Likewise.
365         
366 2006-08-26  Mark Mitchell  <mark@codesourcery.com>
367
368         PR c++/28588
369         * class.c (resolve_address_of_overloaded_function): Add
370         access_path parameter.  Perform access checks.
371         (instantiate_type): Adjust call to
372         resolve_address_of_overloaded_function.  Remove unnecessary code.
373         * tree.c (is_overloaded_fn): Document.  Return 2 when there are
374         acutally multiple functions.
375         (really_overloaded_fn): Use is_overloaded_fn.
376         * mangle.c (write_expression): Handle BASELINKs.
377         * cp-tree.h (really_overloaded_fn): Return bool.
378         (baselink_for_fns): Declare.
379         * search.c (lookup_member): Check access for single static
380         functions here.
381         * pt.c (convert_nontype_argument_function): Handle BASELINKs.
382         (tsubst_copy_and_build): Generate BASELINKs for template-ids.
383         * semantics.c (finish_call_expr): Use baselink_for_fns.
384         (baselink_for_fns): New function.
385         (finish_id_expression): Use it.
386         * parser.c (cp_parser_template_argument): Don't strip BASELINKs.
387
388         PR c++/28595
389         * pt.c (tsubst): Issue errors about attempts to create VLAs at
390         template-instantiation time.
391
392 2006-08-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
393
394         PR c++/28853
395         * typeck2.c (cxx_incomplete_type_diagnostic): Handle template
396         template parameters.  Improve error message for template type
397         parameters.
398
399         PR c++/28852
400         * cp-tree.h (grok_op_properties): Return bool instead of void.
401         * decl.c (grokfndecl): Discard invalid operator declarations.
402         (copy_fn_p): Revert change for PR 27547.
403         (grok_op_properties): Return error status (true on success).
404         * pt.c (tsubst_decl): Discard invalid operator declarations.
405
406 2006-08-25  Mark Mitchell  <mark@codesourcery.com>
407
408         PR c++/28056
409         * decl.c (grokdeclarator): Disallow declarations with qualified
410         names in local scopes.
411
412 2006-08-25  Nathan Sidwell  <nathan@codesourcery.com>
413
414         PR c++/27787
415         * decl.c (make_typename_type): Only try and resolve it when
416         context is not dependent.  Refactor.
417         * decl2.c (check_classfn): Push to class scope before looking for
418         the function.
419
420 2006-08-24  Danny Smith   <dannysmith@users.sourceforge.net>
421
422         PR driver/28528
423         * g++spec.c (lang_specific_driver): Always check if we need to
424         swallow a space-separated  arg to '-x'.
425         * lang-specs.h: Don't create ouput files for '-xc++-header'
426         if -fsyntax-only.
427
428 2006-08-23  Jason Merrill  <jason@redhat.com>
429
430         PR c++/27714
431         * pt.c (push_template_decl_real): A friend template with class 
432         scope isn't primary.
433
434 2006-08-23  Benjamin Smedberg <benjamin@smedbergs.us>
435
436         PR c++/28687
437         * rtti.c (build_dynamic_cast, build_dynamic_cast_1):
438         Move -fno-rtti check to be more specific.
439
440 2006-08-22  Jason Merrill  <jason@redhat.com>
441
442         PR c++/23372
443         * call.c (build_over_call): Don't make a copy here if build_call 
444         will make one too.
445
446 2006-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
447
448         PR C++/28450
449         * cp/init.c (build_zero_init): Handle VECTOR_TYPE and
450         COMPLEX_TYPEs.
451
452 2006-08-22  Simon Martin  <simartin@users.sourceforge.net>
453
454         PR c++/28420
455         * parser.c (cp_parser_postfix_expression): Make sure that the
456         saved value for parser->type_definition_forbidden_message is
457         restored before returning to avoid an invalid free().
458
459 2006-08-22  Jason Merrill  <jason@redhat.com>
460
461         PR c++/28659
462         * typeck.c (merge_types): If either of the types have the right 
463         attributes, return that one.
464
465         * tree.c (cp_build_type_attribute_variant): Make sure we aren't
466         doing this to class types.
467         * typeck.c (original_type): Deal with type quals properly.
468
469 2006-08-21  Jason Merrill  <jason@redhat.com>
470
471         PR c++/27115
472         * semantics.c (finish_stmt_expr_expr): Don't try to voidify here,
473         just leave the expression as it is.
474         (finish_stmt_expr): If the statement-expression has class type,
475         wrap it in a TARGET_EXPR.
476         * cp-gimplify.c (cp_gimplify_init_expr): Don't bother with
477         CLEANUP_POINT_EXPR.
478         * except.c (build_throw): Give the CLEANUP_POINT_EXPR void type.
479
480 2006-08-21  Lee Millward  <lee.millward@codesourcery.com>
481
482         PR c++/26269
483         * decl.c (duplicate_decls): Return early if either
484         newdecl or olddecl is error_mark_node.
485
486          PR c++/28505
487         * decl.c (grokdeclarator): Return early after
488         issuing diagnostic about an incomplete type.
489
490         PR c++/28741
491         * tree.c (decl_anon_ns_mem_p): Robustify.
492         * decl2.c (determine_visibility): Likewise.
493         
494 2006-08-20  Mark Mitchell  <mark@codesourcery.com>
495
496         PR c++/28341
497         * tree.c (cast_valid_in_integral_constant_expression_p): New
498         function.
499         * cp-tree.h (tsubst_copy_and_build): Adjust prototype.
500         * pt.c (tsubst_expr): Add integral_constant_expression_p
501         parameter.
502         (fold_non_dependent_expr): Adjust callers of
503         tsubst_{expr,copy_and_build}.
504         (tsubst_friend_function): Likewise.
505         (tsubst_template_arg): Likewise.
506         (tsubst_default_argument): Likewise.
507         (tsubst_decl): Likewise.
508         (tsubst): Likewise.
509         (tsubst_omp_clasuses): Likewise.
510         (regenerate_decl_fromp_template): Likewise.
511         (instantiate_decl): Likewise.
512         (tsubst_initializer_list): Likewise.
513         (tsubst_enum): Likewise.
514         (tsubst_expr): Use RECUR throughout.
515         (tsubst_copy_and_build): Change definition of RECUR.  Do not allow
516         invalid casts in integral constant expressions.
517         * parser.c (cp_parser_postfix_expression): Use
518         cast_valid_in_integral_constant_expression_p.
519         (cp_parser_cast_expression): Likewise.
520         (cp_parser_functional_cast): Likewise.
521
522         PR c++/28346
523         * pt.c (tsubst_qualified_id): Do not strip references from
524         OFFSET_REFs. 
525
526 2006-08-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
527
528         PR c++/28606
529         * parser.c (cp_parser_diagnose_invalid_type_name): Handle BIT_NOT_EXPR.
530         Fix formatting.
531         (cp_parser_parse_and_diagnose_invalid_type_name): Tighten condition
532         for valid type-names.
533         (cp_parser_unqualified_id): Fix error handling for destructors.
534
535         PR c++/28710
536         * decl.c (xref_tag): Improve error message.  Return early on error.
537
538         PR c++/28711
539         * pt.c (tsubst_copy_and_build) <case CONSTRUCTOR>: Robustify.
540
541 2006-08-17  Paolo Bonzini  <bonzini@gnu.org>
542
543         PR c++/28573
544         * semantics.c (finish_offsetof): Add new argument to fold_offsetof.
545
546 2006-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
547
548         PR c++/28302
549         * typeck.c (build_unary_op <case BIT_NOT_EXPR:>): Don't call
550         perform_integral_promotions for non integral type.
551
552 2006-08-16  Jason Merrill  <jason@redhat.com>
553
554         PR c++/28385
555         * pt.c (tsubst) [TEMPLATE_TYPE_PARM]: Ignore quals from template
556         if arg is a function.
557
558 2006-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
559
560         PR c++/28593
561         * init.c (build_new): Return early on invalid placement.
562
563 2006-08-15  Lee Millward  <lee.millward@codesourcery.com>
564
565         PR c++/28594
566         * pt.c (process_template_parm): Robustify.
567         
568 2006-08-14  Steve Ellcey  <sje@cup.hp.com>
569
570         PR c++/28288
571         PR c++/14556
572         * operators.def: Remove <?, ?>, <?=, and >?= operators.
573         * parser.c: Remove CPP_MIN, CPP_MAX, CPP_MIN_EQ, and CPP_MAX_EQ.
574         (cp_parser_warn_min_max): Remove.
575
576 2006-08-11  Jason Merrill  <jason@redhat.com>
577
578         PR c++/28559
579         * parser.c (cp_parser_elaborated_type_specifier): Also ignore
580         attributes applied to a TYPENAME_TYPE.
581
582 2006-08-09  Lee Millward  <lee.millward@codesourcery.com>
583
584         PR c++/28637
585         * pt.c (coerce_template_parms): Copy across the
586         invalid template arguments to the new template inner arguments.
587         (retrieve_specialization): Robustify.
588
589         PR c++/28638
590         * pt.c (coerce_template_template_parms): Robustify.
591
592         PR c++/28639
593         * error.c (dump_template_parms): Robustify.
594
595         PR c++/28640
596         * pt.c (redeclare_class_template): Robustify.
597
598         PR c++/28641
599         * pt.c (type_unification_real): Robustify.
600         
601 2006-08-03  Lee Millward  <lee.millward@codesourcery.com>
602
603         PR c++/28347
604         * decl.c (start_decl): Return error_mark_node if a
605         diagnostic was issed for an invalid typedef initialization.
606         
607 2006-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
608
609         PR c++/27508
610         * parser.c (cp_parser_unqualified_id): Check for invalid scopes
611         when parsing destructor names.
612
613         PR c++/28274
614         * decl.c (duplicate_decls): Call check_default_args here.
615         (start_preparsed_function): Do not call check_default_args.
616         * name-lookup.c (pushdecl_maybe_friend): Only call
617         check_default_args if duplicate_decls got bypassed.
618
619 2006-08-02  Richard Guenther  <rguenther@suse.de>
620
621         PR c++/28479
622         Revert
623         2006-07-05  Richard Guenther  <rguenther@suse.de>
624         Andrew Pinski  <pinskia@gcc.gnu.org>
625
626         PR c++/27084
627         * cp-objcp-common.c (cxx_types_compatible_p): Ignore
628         top level qualifiers for pointer type comparisons.
629
630 2006-08-02  Mark Mitchell  <mark@codesourcery.com>
631
632         PR c++/28557
633         * pt.c (tsubst_baselink): Substitute into BASELINK_OPTYPE.
634
635 2006-07-31  Mark Mitchell  <mark@codesourcery.com>
636
637         PR c++/28523
638         * tree.c (stabilize_expr): Tweak documentation.  Add assertion.
639         (stabilize_call): Tweak documentation.
640         (stabilize_init): Only call stabilize_call for calls.
641
642 2006-08-01  Steve Ellcey  <sje@cup.hp.com>
643
644         PR c++/28432
645         * decl2.c (check_classfn): Remove early return.
646         * search.c (lookup_member): Return NULL with bad type.
647
648 2006-08-01  Steve Ellcey  <sje@cup.hp.com>
649
650         PR c++/28256
651         * decl.c (check_initializer): Check for 1 initializer on scalar types.
652
653 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
654
655         PR debug/23336
656         * pt.c (tsubst_copy_and_build): Mark used enum types.
657         * semantics.c (finish_id_expression): Likewise.
658
659 2006-07-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
660
661         PR c++/6634
662         * decl.c (grokdeclarator): Check whether "long" or "short" was
663         specified for non-integral types.
664
665 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
666
667         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
668
669 2006-07-28  Lee Millward  <lee.millward@codesourcery.com>
670
671         PR c++/27668
672         PR c++/27962
673         * pt.c (process_template_parm) Store invalid template
674         parameters as error_mark_node in the paramater list.
675         (push_inline_template_parms_recursive): Handle invalid
676         template parameters.
677         (comp_template_parms): Likewise.
678         (check_default_tmpl_arg): Likewise.
679         (coerce_template_template_parms): Likewise.
680         (mangle_class_name_for_template): Likewise.
681         (tsubst_template_parms): Likewise.
682         * error.c (dump_template_argument_list): Likewise.
683         
684 2006-07-28  Kazu Hirata  <kazu@codesourcery.com>
685
686         * cp-tree.h: Fix a comment typo.
687
688 2006-07-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
689
690         PR c++/27572
691         * decl.c (grokdeclarator): Return error_mark_node after invalid
692         typedef.
693
694 2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
695
696         PR c++/28460
697         * decl.c (grokvardecl): Use FROB_CONTEXT.
698         * pt.c (register_specialization): Likewise.
699
700 2006-07-23  Mark Mitchell  <mark@codesourcery.com>
701
702         PR c++/28025
703         * cp-tree.h (LOOKUP_HIDDEN): New macro.  Reformat comments.
704         * name-lookup.c (unqualified_namespace_lookup): There is no way to
705         have a hidden name in non-namespace scopes.
706         * pt.c (tsubst_friend_class): Look for hidden names.
707         * decl.c (lookup_and_check_tag): Fix typo in comment.
708
709         * semantics.c (finish_compound_literal): Fix typo in comment.
710
711 2006-07-21  Jason Merrill  <jason@redhat.com>
712
713         * decl2.c (determine_visibility): Don't propagate visibility from
714         type to decl.
715         (constrain_class_visibility): Don't warn in system headers.
716         Don't warn about pointer fields.
717
718 2006-07-20  Mike Stump  <mrs@apple.com>
719
720         * decl2.c (determine_visibility_from_class): Don't use hidden
721         visibility for explicit instantiations.
722
723 2006-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
724
725         PR c++/28250
726         * pt.c (tsubst_expr): Only apply DECL_TEMPLATE_INSTANTIATED to
727         valid decls.  Cleanup.
728
729         PR c++/28363
730         * semantics.c (check_template_template_default_arg): Simplify
731         error handling.
732
733 2006-07-20  Jason Merrill  <jason@redhat.com>
734
735         PR c++/28407
736         * decl.c (grokvardecl): Set DECL_THIS_STATIC on file-scope
737         const variables with implicit internal linkage.
738         * tree.c (decl_linkage): Only return lk_external if it's set.
739
740         PR c++/28409
741         * decl2.c (constrain_visibility): Ignore the anonymous namespace 
742         for extern "C" decls.
743         (VISIBILITY_STATIC): Rename to VISIBILITY_ANON.
744
745         * decl2.c (constrain_visibility): Remove specified and reason 
746         parameters.  Don't touch decls that already have explicit visibility.
747         (determine_visibility): Do copy DECL_VISIBILITY_SPECIFIED from 
748         template.
749         (determine_visibility_from_class): Reverse sense of 
750         DECL_VISIBILITY_SPECIFIED test for target-specific visibility rules.
751         (constrain_class_visibility): Only complain about member visibility
752         if the member type is another class.  Don't change visibility of the
753         current class.
754
755 2006-07-19  Mark Mitchell  <mark@codesourcery.com>
756
757         PR c++/28338
758         * decl.c (layout_var_decl): Don't call push_local_name here.
759         (initialize_artificial_var): Assert artificiality.
760         (cp_finish_decl): Call push_local_name here.
761
762 2006-07-18  Mark Mitchell  <mark@codesourcery.com>
763
764         PR c++/28337
765         * typeck.c (build_binary_op): Short-circuit pointer arithmetic in
766         templates.
767
768 2006-07-18  Mark Mitchell  <mark@codesourcery.com>
769
770         PR c++/28048
771         * semantics.c (check_accessibility_of_qualified_id): Robustify.
772
773         PR c++/28235
774         * pt.c (tsubst_decl): Handling substitutions into a static data
775         member from within the scope of the tempalte itself.
776
777 2006-07-18  Lee Millward  <lee.millward@gmail.com>
778
779         PR c++/28258
780         * method.c (locate_copy): Check for non_reference
781         returning error_mark_node.
782
783         PR c++/28260
784         * decl.c (duplicate_decls): Return error_mark_node
785         on ambiguous declaration.
786         
787 2006-07-18  Steve Ellcey  <sje@cup.hp.com>
788
789         PR c++/27495
790         * search.c (adjust_result_of_qualified_name_lookup): Change
791         assert to part of if statement.
792
793 2006-07-17  Steve Ellcey  <sje@cup.hp.com>
794
795         PR c++/28291
796         * decl.c (reshape_init_class): Return error_mark_node on error.
797
798 2006-07-17  Steve Ellcey  <sje@cup.hp.com>
799
800         PR c++/28304
801         * decl2.c (check_classfn): Return NULL_TREE on error.
802
803 2006-07-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
804
805         PR c++/28250
806         * name-lookup.c (pushdecl_maybe_friend): Return early on
807         error_mark_node.
808         * except.c (expand_start_catch_block): Use error_mark_node instead
809         of NULL_TREE for invalid decls.
810         * parser.c (cp_parser_exception_declaration): Return error_mark_node
811         on invalid catch parameter. Simplify.
812
813 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
814
815         PR c++/28370
816         * decl2.c (note_vague_linkage_var): Removed.
817         (finish_static_data_member_decl): Add decl to pending_statics vector
818         directly.  Do it even for non-public decls.
819
820 2006-07-15  Lee Millward  <lee.millward@gmail.com>
821
822         PR c++/28292
823         * decl2.c (acceptable_java_type): Robustify. Use
824         proper Boolean return type instead of return 1.
825         (check_java_method): Don't issue error about
826         type not being an acceptable Java parameter if 
827         it's error_mark_node.
828         
829         PR c++/28269
830         * parser.c (cp_parser_elaborated_type_specifier):
831         Return early if an invalid type was detected.
832         
833 2006-07-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
834
835         PR c++/28249
836         * parser.c (cp_parser_check_decl_spec): New function.
837         (cp_parser_decl_specifier_seq): Factor out check for repeated
838         decl-specifiers into cp_parser_check_decl_spec. Use it.
839         (cp_parser_type_specifier_seq): Use it.
840
841         PR c++/28294
842         * semantics.c (finish_offsetof): Use TREE_OPERAND for COMPONENT_REFs
843         only.
844
845         PR c++/28387
846         * decl2.c (cplus_decl_attributes): Check for invalid decls.
847
848 2006-07-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
849
850         PR c++/28343
851         * decl.c (cp_finish_decl): Check asmspec_tree for error_mark_node.
852         * decl2.c (grokfield): Likewise.
853
854 2006-07-12  Geoffrey Keating  <geoffk@apple.com>
855
856         * decl2.c (determine_visibility): Don't change visibility of
857         function locals because of -fvisibility-inlines-hidden.
858
859 2006-07-12  Jason Merrill  <jason@redhat.com>
860
861         PR c++/28217
862         * semantics.c (note_decl_for_pch): Don't premangle templates.
863
864 2006-07-12  Martin Michlmayr  <tbm@cyrius.com>
865
866         * typeck.c (string_conv_p): Remove spurious quotation mark in
867         warning.
868
869 2006-07-07  Lee Millward  <lee.millward@gmail.com>
870             Andrew Pinski  <pinskia@gmail.com>
871
872         PR c++/27820
873         * decl.c (define_label): Return error_mark_node on error.
874         * semantics.c (finish_label_stmt): Don't call
875         add_stmt for invalid labels.
876         
877 2006-07-06  Jason Merrill  <jason@redhat.com>
878
879         PR c++/28279
880         * decl2.c (finish_static_data_member_decl): Don't assert
881         TREE_PUBLIC.
882
883 2006-07-05  Jason Merrill  <jason@redhat.com>
884
885         PR c++/13983
886         PR c++/17519
887         * class.c (check_field_decls): Check TYPE_PACKED after
888         stripping array types.
889         (finish_struct_bits): Don't copy TYPE_SIZE here.
890
891         PR c++/18681
892         * friend.c (is_friend): Fix DR 45 implementation.
893
894 2006-07-05  Richard Guenther  <rguenther@suse.de>
895         Andrew Pinski  <pinskia@gcc.gnu.org>
896
897         PR c++/27084
898         * cp-objcp-common.c (cxx_types_compatible_p): Ignore
899         top level qualifiers for pointer type comparisons.
900
901 2006-07-01  Jason Merrill  <jason@redhat.com>
902
903         PR c++/28215
904         * method.c (make_thunk): Unset DECL_USE_TEMPLATE and 
905         DECL_TEMPLATE_INFO.
906
907 2006-06-30  Jason Merrill  <jason@redhat.com>
908
909         PR c++/26577
910         * call.c (build_new_method_call): Force evaluation of the 
911         instance pointer, not the object.
912
913 2006-06-30  Kazu Hirata  <kazu@codesourcery.com>
914
915         * decl2.c: Fix a comment typo.
916
917 2006-06-30  Jason Merrill  <jason@redhat.com>
918
919         PR c++/18698
920         * decl2.c (grokfield): Only try to treat the decl as an access 
921         declaration if the scope is a class.
922
923 2006-06-29  Jason Merrill  <jason@redhat.com>
924
925         PR c++/26905
926         PR c++/26612
927         PR c++/27000
928         PR c++/26984
929         PR c++/19134
930         * decl2.c (determine_visibility): Overhaul.
931         (determine_visibility_from_class): Likewise.
932         (min_vis_r, type_visibility, constrain_visibility): New fns.
933         (constrain_visibility_for_template): Likewise.
934         (constrain_class_visibility): Likewise.
935         * decl.c (cp_finish_decl): Call determine_visibility for function
936         decls, too.
937         * name-lookup.c (pushtag): Call determine_visibility.
938         * decl.c (duplicate_decls): Don't copy visibility from template to
939         specialization.
940         * pt.c (check_explicit_specialization): Likewise.
941         (lookup_template_class, tsubst_decl): Call determine_visibility.
942         * class.c (finish_struct_1): Call constrain_class_visibility.
943
944         PR c++/26905
945         PR c++/21675
946         PR c++/17470
947         * parser.c (cp_parser_explicit_instantiation): Pass the attributes
948         to grokdeclarator.
949         (cp_parser_type_specifier): Allow 'enum __attribute ((...)) E'.
950         (cp_parser_enum_specifier): Likewise.
951         (cp_parser_elaborated_type_specifier): Apply attributes if this
952         declares only the class.
953         (cp_parser_class_specifier): Apply leading attributes immediately.
954         * semantics.c (begin_class_definition): Add attributes parameter,
955         apply them to the type.
956
957         PR c++/21581
958         PR c++/25915
959         * tree.c (decl_anon_ns_mem_p): New function.
960         * cp-tree.h: Declare it.
961         * decl2.c (determine_visibility): Make anonymous namespace
962         members static.
963         (min_vis_r, constrain_visibility): Likewise.
964         * rtti.c (create_pseudo_type_info): Set TREE_PUBLIC on
965         pseudo-types.
966         * decl.c (cxx_init_decl_processing): Set TREE_PUBLIC on
967         global_namespace.
968         * name-lookup.c (push_namespace_with_attribs): Don't set TREE_PUBLIC
969         on anonymous namespaces.
970
971 2006-06-28  Jason Merrill  <jason@redhat.com>
972
973         PR c++/27424
974         * pt.c (convert_template_argument): Pass all template arguments 
975         on to coerce_template_template_parms.
976
977 2006-06-25  Lee Millward  <lee.millward@gmail.com>
978             Mark Mitchell <mark@codesuorcery.com>
979
980         PR c++/28054
981         * decl2.c (grokbitfied): Remove check for grokdeclarator
982         returning NULL_TREE, instead check for error_mark_node
983         to indicate failure.
984         * decl.c (grokdeclarator): Adjust block comment.
985         
986 2006-06-25  Lee Millward  <lee.millward@gmail.com>
987
988         PR c++/28051
989         * mangle.c (mangle_conv_op_name_for_type): Check for
990         invalid types.
991         * name-lookup.c (push_class_level_binding): Robustify.
992         (do_class_using_decl): Return early if name is error_mark_node.
993         
994 2006-06-23  Steve Ellcey  <sje@cup.hp.com>
995
996         PR c++/28114
997         * name-lookup.c (pushtag): Return if we have error_mark_node.
998
999 2006-06-23  Steve Ellcey  <sje@cup.hp.com>
1000
1001         PR c++/27019
1002         * typeck2.c (process_init_constructor_array): Set ce->value on errors.
1003
1004 2006-06-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1005
1006         PR c++/28112
1007         * parser.c (cp_parser_attribute_list): Skip attributes with invalid
1008         arguments.  Fix comment.
1009
1010         PR c++/11468
1011         * init.c (build_new_1): Handle error_mark_nodes returned by
1012         build_java_class_ref.
1013         (build_java_class_ref): Do not abort compilation, but return
1014         error_mark_node.  Improve error message.  Fix indentation.
1015
1016 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
1017
1018         PR target/27789
1019         * decl.c (start_decl): Check that dllimports are not initialized.
1020
1021 2006-06-22  Lee Millward  <lee.millward@gmail.com>
1022
1023         PR c++/27805
1024         * typeck2.c (build_m_component_ref): Use error_operand_p.
1025
1026         PR c++/27821
1027         * decl.c (grokdeclarator): Return error_mark_node on
1028         invalid uses of the scope resolution operator.
1029         
1030 2006-06-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1031
1032         PR c++/28111
1033         * pt.c (determine_specialization): Check for invalid decls.
1034
1035         PR c++/28110
1036         * pt.c (unify) <case TEMPLATE_PARM_INDEX>: Check for invalid
1037         parameters.
1038
1039         PR c++/28109
1040         * rtti.c (get_tinfo_decl_dynamic): Robustify.
1041
1042 2006-06-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1043
1044         PR c++/28052
1045         * init.c (push_base_cleanups): Skip members with invalid types.
1046         * typeck.c (build_class_member_access_expr): Robustify.
1047
1048 2006-06-19  Mark Mitchell  <mark@codesourcery.com>
1049
1050         * pt.c (instantiate_template): Fix typo in comment.
1051
1052 2006-06-19  Richard Guenther  <rguenther@suse.de>
1053
1054         * parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near
1055         power-of-two token vector size.
1056
1057 2006-06-16  Mark Mitchell  <mark@codesourcery.com>
1058
1059         PR c++/28016
1060         * decl.c (cp_finsh_decl): Do not emit uninstantiated static data
1061         members.
1062
1063         PR c++/27979
1064         * call.c (standard_conversion): Strip cv-qualifiers from bitfield
1065         types.
1066
1067         PR c++/27884
1068         * decl.c (have_extern_spec): Remove.
1069         (start_decl): Do not check have_extern_spec.
1070         (start_function): Likewise.
1071         * cp-tree.h (have_extern_spec): Remove.
1072         * parser.c (cp_parser_linkage_specification): Don't set
1073         have_extern_spec.
1074         (cp_parser_init_declarator): Likewise.
1075         (cp_parser_parameter_declaration): Do not treat parameters as
1076         within the scope of an unbraced linkage specification.
1077
1078 2006-06-15  Mark Mitchell  <mark@codesourcery.com>
1079
1080         PR c++/27689
1081         * cp-tree.h (CLASSTYPE_SPECIALIZATION_OF_PRIMARY_TEMPLATE_P): New
1082         macro.
1083         * pt.c (unify): Use it.
1084
1085         PR c++/27666
1086         * call.c (build_conditional_expr): Robustify.
1087
1088         PR c++/27640
1089         * pt.c (instantiate_template): Set processing_template_decl to
1090         zero while performing substitutions.
1091
1092 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
1093
1094         PR c++/27665
1095         * parser.c (cp_parser_unqualified_id): Use constructor_name_p to
1096         identify destructors.
1097         (cp_parser_nested_name_specifier_opt): Remove invalid
1098         optimization.
1099         (cp_parser_template_id): Refine heuristic for determining whether
1100         we are entering a scope.
1101
1102         PR c++/27648
1103         * parser.c (cp_parser_declarator): Robustify.
1104
1105         PR c++/26559
1106         * pt.c (tsubst_expr): Use finish_omp_atomic.
1107         (value_dependent_expression_p): All CALL_EXPRs are dependent.
1108         * semantics.c (finish_omp_atomic): Rework to use standard
1109         paradigms for handling non-dependent expressions.
1110
1111 2006-06-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1112
1113         * typeck.c (build_modify_expr): Tidy diagnostic message.
1114
1115 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
1116
1117         PR c++/28018
1118         * typeck.c (build_modify_expr): Disallow array assignment.
1119
1120 2006-06-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1121
1122         * cp-tree.def: Fix typo.
1123
1124 2006-06-13  Mark Mitchell  <mark@codesourcery.com>
1125
1126         PR c++/27227
1127         * decl.c (decls_match): Allow an extern "C" variable declarations
1128         from different namespaces to match.
1129         (duplicate_decls): Disallow redeclaring a variable with a
1130         different linkage specification.
1131
1132 2006-06-13  Jakub Jelinek  <jakub@redhat.com>
1133
1134         PR middle-end/27793
1135         * cp-tree.h (cxx_int_tree_map): New struct.
1136         (struct language_function): Add extern_decl_map field.
1137         * name-lookup.c (pushdecl_maybe_friend): Add x -> t mapping
1138         to cp_function_chain->extern_decl_map hash table instead of
1139         copying over DECL_UID.
1140         * cp-gimplify.c (cxx_int_tree_map_eq, cxx_int_tree_map_hash): New
1141         functions.
1142         (cp_genericize_r): Remap DECL_EXTERN local decls using
1143         cp_function_chain->extern_decl_map hash table.
1144         * decl.c (finish_function): Clear extern_decl_map.
1145
1146 2006-06-12  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1147
1148         PR c++/27601
1149         * semantics.c (finish_offsetof): Handle pseudo-destructors.
1150
1151         PR c++/27933
1152         * name-lookup.c (lookup_qualified_name): Always return error_mark_node
1153         if lookup fails.
1154
1155         PR c++/27951
1156         * decl2.c (finish_anon_union): Return early if build_anon_union_vars
1157         fails.
1158
1159 2006-06-12  Roger Sayle  <roger@eyesopen.com>
1160
1161         PR c++/21210
1162         * typeck2.c (build_functional_cast): Use cp_convert to construct
1163         non-aggregate initializers instead of the user-level build_c_cast.
1164
1165 2006-06-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1166
1167         PR c++/27601
1168         * cp-tree.h (finish_offsetof): Add prototype.
1169         * semantics.c (finish_offsetof): New function.
1170         * parser.c (cp_parser_builtin_offsetof): Call it instead of
1171         fold_offsetof.
1172         * pt.c (tsubst_copy_and_build): Likewise.
1173
1174 2006-06-06  Mark Mitchell  <mark@codesourcery.com>
1175
1176         PR c++/27177
1177         * call.c (standard_conversion): Require that the derived type be
1178         complete when performing a derived-to-base conversion.
1179
1180 2006-06-04  Mark Mitchell  <mark@codesourcery.com>
1181
1182         PR c++/27819
1183         * decl.c (cp_finish_decl): Process initializers for static data
1184         members with non-dependent initializers, even in templates.
1185
1186         PR c++/27722
1187         * decl.c (maybe_deduce_size_from_array_init): If the declaration
1188         is erroneous, give it an erroneous type.
1189         (layout_var_decl): If the type is erroneous, give up.
1190         (check_initializer): Likewise.
1191
1192         PR c++/27807
1193         * cp-tree.h (TYPE_OBJ_P): New macro.
1194         (TYPE_PTROB_P): Use it.
1195         (TYPE_REF_OBJ_P): Likewise.
1196         * semantics.c (finish_compound_literal): Do not permit compound
1197         literals of non-object types.
1198
1199         PR c++/27806
1200         * typeck.c (original_type): Robustify.
1201
1202 2006-06-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1203
1204         PR c++/27804
1205         * init.c (constant_value_1): Return decl instead of error_mark_node
1206         for invalid initializers.
1207
1208 2006-06-01  Andrew Pinski  <pinskia@physics.uc.edu>
1209
1210         PR c++/27592
1211         * rtti.c (build_dynamic_cast_1): Call c_common_truthvalue_conversion
1212         on operand of the COND_EXPR for the null pointer check.
1213
1214 2006-06-01  Andrew Pinski  <pinskia@physics.uc.edu>
1215
1216         PR c++/26740
1217         * typeck.c (build_unary_op): Mark the function as being used.
1218
1219 2006-06-01  Alexandre Oliva  <aoliva@redhat.com>
1220
1221         PR c++/26660
1222         * parser.c (cp_parser_initial_pragma): Read one more token for
1223         caller after reading PCH file in.
1224
1225 2006-05-31  Mark Mitchell  <mark@codesourcery.com>
1226
1227         PR c++/27801
1228         * call.c (perform_implicit_conversion): Do not actually perform
1229         conversions in templates.
1230
1231         PR c++/26496
1232         * call.c (resolve_args): Check for invalid uses of bound
1233         non-static member functions.
1234         * init.c (build_offset_ref): Return error_mark_node for errors.
1235
1236         PR c++/27385
1237         * decl.c (reshape_init): Robustify.
1238         (reshape_init_array_1): Likewise.
1239
1240 2006-05-30  Mark Mitchell  <mark@codesourcery.com>
1241
1242         PR c++/27808
1243         * parser.c (cp_parser_decl_specifier_seq): Issue errors about
1244         "friend" specifiers that do not appear in class scopes.
1245
1246         PR c++/27803
1247         * class.c (check_bitfield_decl): Ensure that all bitfields have
1248         integral type.
1249
1250 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
1251
1252         * pt.c (convert_nontype_argument): Fix a typo in an error
1253         message.
1254
1255 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
1256
1257         * decl.c, decl2.c, parser.c: Fix comment typos.  Follow
1258         spelling conventions.
1259
1260 2006-05-24  Mark Mitchell  <mark@codesourcery.com>
1261
1262         PR c++/20103
1263         * decl.c (cp_make_fname_decl): Don't set DECL_INITIAL to
1264         error_mark_node to indicate an initialization is OK.
1265         (start_decl): Likewise.  Adjust call to start_decl_1.
1266         (start_decl_1): Add initialized parameter.  Simplify.
1267         * except.c (initialize_handler_parm): Adjust call to
1268         setart_decl_1.
1269         (expand_start_catch_block): Let cp_finish_decl initialize catch
1270         parameters.
1271         * cp-tree.h (start_decl_1): Adjust prototype.
1272         * pt.c (tsubst_expr): Don't set DECL_INITIAL to error_mark_node.
1273         (instantiate_decl): Let cp_finish_decl handle initialization.
1274         * semantics.c (finish_compound_literal): Create a temporary
1275         variable for the literal.
1276         * typeck.c (build_unary_op): Remove COMPOUND_LITERAL_P special
1277         cases.
1278         * decl2.c (finish_static_data_member_decl): Don't set
1279         DECL_INITIAL.
1280         (grokfield): Do not try to initialize functions.
1281
1282 2006-05-23  Mark Mitchell  <mark@codesourcery.com>
1283
1284         PR c++/20173
1285         * pt.c (determine_specialization): Disallow partial
1286         specializations of templates.
1287
1288 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1289
1290         PR c++/27716
1291         * typeck.c (build_modify_expr): Test arguments for error_operand_p.
1292
1293         * decl.c (grokdeclarator): Return error_mark_node instead of NULL_TREE.
1294
1295 2006-05-21  Mark Mitchell  <mark@codesourcery.com>
1296
1297         PR c++/27210
1298         * cp-tree.h (cp_save_expr): New function.
1299         * init.c (build_new): Correct logic for zero-element array
1300         warning.  Use cp_save_expr.
1301         * tree.c (cp_save_expr): New function.
1302
1303 2006-05-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1304
1305         PR c++/27398
1306         * decl.c (grokdeclarator): Return error_mark_node instead of NULL_TREE
1307         or void_type_node.
1308
1309 2006-05-19  Mike Stump  <mrs@apple.com>
1310
1311         * typeck.c (default_conversion): Remove static.
1312
1313 2006-05-19  Mark Mitchell  <mark@codesourcery.com>
1314
1315         PR c++/26433
1316         * cp-tree.h (begin_function_try_block): Change prototype.
1317         (finish_function_handler_sequence): Likewise.
1318         * parser.c (cp_parser_function_try_block): Adjust calls.
1319         * pt.c (tsubst_expr): Adjust calls.
1320         * semantics.c (begin_function_try_block): Create an artificial
1321         outer scope.
1322         (finish_function_handler_sequence): Close it.
1323
1324 2006-05-18  Mark Mitchell  <mark@codesourcery.com>
1325
1326         PR c++/27471
1327         PR c++/27506
1328         * typeck.c (decay_conversion): Convert bitfields to their declared
1329         types here.  Improve documentation.  Avoid use of cp_convert.
1330         (default_conversion): Make it static.  Perform integral promotions
1331         before lvalue-to-rvalue, function-to-pointer, and array-to-pointer
1332         conversions.
1333         * init.c (build_init): Remove.
1334         (expand_default_init): Do not call rvalue.
1335         * call.c (null_ptr_cst_p): Robustify.
1336         (build_conditional_expr): Tidy.
1337         * except.c (build_throw): Do not perform lvalue-to-rvalue
1338         conversion on operand before initializing temporary.
1339         * tree.c (convert.h): Include it.
1340         (convert_bitfield_to_declared_type): Use convert_to_integer, not
1341         cp_convert.
1342         (rvalue): Don't convert bitfields to their declared type here.
1343         * cp-tree.h (build_init): Remove.
1344         (default_conversion): Likewise.
1345         * typeck2.c (build_m_component_ref): Do not perform
1346         lvalue-to-rvalue, function-to-pointer, or array-to-pointer
1347         conversions here.  Correct error message.
1348
1349 2006-05-17  Mark Mitchell  <mark@codesourcery.com>
1350
1351         PR c++/26122
1352         * decl2.c (check_member_template): Remove checks for virtual
1353         functions.
1354         * parser.c (cp_parser_function_specifier_opt): Complain about
1355         virtual templates.
1356         (cp_parser_pure_specifier): Likewise.
1357
1358         PR c++/26068
1359         * parser.c (cp_parser_set_storage_class): Check for
1360         invalid uses of storage classes on unbraced linkage
1361         specifications.
1362         (cp_parser_decl_specifier_seq): Pass keywords, not storage classes,
1363         to cp_parser_set_storage_class.
1364
1365 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
1366
1367         PR c++/27491
1368         * semantics.c (finish_compound_literal): Only set TREE_HAS_CONSTRUCTOR
1369         on CONSTRUCTORs.
1370
1371         PR middle-end/27415
1372         * parser.c (cp_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
1373         on combined parallel workshare constructs.
1374         * pt.c (tsubst_expr): Copy OMP_PARALLEL_COMBINED flag.
1375
1376 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1377
1378         PR driver/26885
1379         * Make-lang.in (GXX_OBJS): Replace gcc.o with $(GCC_OBJS).
1380
1381 2006-05-15  Mark Mitchell  <mark@codesourcery.com>
1382
1383         PR c++/27339
1384         * cp-tree.h (perform_access_checks): New function.
1385         * semantics.c (perform_access_checks): New function.
1386         (perform_deferred_access_checks): Use it.
1387         * parser.c (cp_parser_simple_declaration): Adjust call to
1388         cp_parser_init_declarator.
1389         (cp_parser_type_parameter): Do not defer checks in default
1390         arguments.
1391         (cp_parser_explicit_specialization): Adjust call to
1392         cp_parser_single_declaration.
1393         (cp_parser_init_declarator): Perform template-parameter access
1394         checks.
1395         (cp_parser_parameter_declaration): Do not defer checks for
1396         template parameter default arguments.
1397         (cp_parser_template_declaration_after_export): Gather access
1398         checks for template parameters, and pass them to
1399         cp_parser_single_declaration.
1400         (cp_parser_template_parameter_access_checks): New function.
1401         (cp_parser_single_declaration): Add checks parameter.
1402
1403         PR c++/27505
1404         * call.c (convert_like_real): Convert bitfields to their declared
1405         types when forming an rvalue.
1406         * tree.c (convert_bitfield_to_declared_type): New function.
1407         (rvalue): Use it.
1408         * cp-tree.h (convert_bitfield_to_declare_type): Declare it.
1409
1410 2006-05-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1411
1412         PR c++/27582
1413         * pt.c (any_dependent_template_arguments_p): Return early on invalid
1414         argument list.
1415
1416         PR c++/27581
1417         * search.c (adjust_result_of_qualified_name_lookup): Skip on
1418         invalid context_class.
1419
1420         PR c++/27315
1421         * pt.c (do_decl_instantiation): Return early on invalid decl.
1422
1423         PR c++/27559
1424         * pt.c (push_template_decl_real): Return error_mark_node instead
1425         of broken decl.
1426
1427         PR c++/27496
1428         * pt.c (tsubst_friend_class): Return early on invalid friend
1429         declarations.
1430
1431 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1432
1433         * Make-lang.in (cp/decl.o): Add dependency on $(TARGET_H).
1434         (cp/decl2.o): Likewise.
1435         (cp/typeck.o): Likewise.
1436         (cp/cvt.o): Likewise.
1437         (cp/parser.o): Likewise.
1438         (cp/call.o): Replace target.h with $(TARGET_H).
1439
1440 2006-05-14  Alexandre Oliva  <aoliva@redhat.com>
1441
1442         * pt.c (build_non_dependent_expr): Leave ADDR_EXPR of
1443         COMPONENT_REF alone.
1444
1445 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1446
1447         PR c++/27547
1448         * decl.c (copy_fn_p): Return early on non-member functions.
1449
1450 2006-05-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1451
1452         PR c++/27447
1453         * decl2.c (build_memfn_type): Skip invalid functions and class types.
1454
1455 2006-05-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1456
1457         PR c++/27427
1458         * pt.c (convert_nontype_argument): Return early on invalid arguments.
1459
1460         * pt.c (process_template_parm): Remove superfluous temporary.
1461
1462         PR c++/27430
1463         * pt.c (process_template_parm): Handle erroneous non-type parameters.
1464
1465         PR c++/27423
1466         * typeck.c (convert_for_initialization): Skip erroneous types.
1467
1468         PR c++/27422
1469         * typeck.c (convert_arguments): Return early on args with
1470         invalid types.
1471
1472 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
1473
1474         PR/21391
1475         * typeck.c (build_static_cast_1): Save casted types in used types
1476         hash table.
1477         (build_reinterpret_cast_1): Same.
1478         * rtti.c (build_dynamic_cast_1): Same.
1479
1480 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
1481
1482         PR c++/27359
1483         * parser.c (cp_parser_omp_for_loop): Only call
1484         cp_parser_abort_tentative_parse if cp_parser_parse_definitely was not
1485         called.
1486
1487 2006-05-02  Mark Mitchell  <mark@codesourcery.com>
1488
1489         PR c++/27102
1490         * decl.c (grokdeclarator): Robustify checks for defining members
1491         of incomplete types.
1492
1493         PR c++/27309
1494         * class.c (add_method): Call grok_special_member_properties.
1495         * decl.c (grokdeclarator): Don't call it here.
1496         (copy_fn_p): A TEMPLATE_DECL is never a copy constructor or
1497         assignment operator.  Set TYPE_HAS_CONSTURCTOR if DECL is a
1498         constructor.
1499         (start_method): Don't call grok_special_member_properties.
1500         * method.c (implicitly_declare_fn): Likewise.
1501         * pt.c (instantiate_class_template): Likewise.
1502         * decl2.c (grokfield): Likewise.
1503
1504 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
1505
1506         PR middle-end/27337
1507         * cp-gimplify.c (cxx_omp_privatize_by_reference): New function.
1508         * cp-tree.h (cxx_omp_privatize_by_reference): New prototype.
1509         * cp-objcp-common.h (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Define.
1510
1511 2006-04-30  Mark Mitchell  <mark@codesourcery.com>
1512
1513         PR c++/27094
1514         * pt.c (tsubst_default_argument): Increment function_depth around
1515         call to tsubst_expr.
1516         * parser.c (cp_parser_parameter_declaration): Likewise.
1517         * decl2.c (mark_used): Tidy.
1518
1519 2006-04-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1520
1521         PR c++/27278
1522         * decl.c (grok_op_properties): Skip operators with invalid args
1523         when checking for class-type or enum-type args.
1524
1525 2006-04-29  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1526
1527         PR c++/27279
1528         * decl.c (copy_fn_p): Skip functions with invalid first arg.
1529
1530 2006-04-27  Mark Mitchell  <mark@codesourcery.com>
1531
1532         PR c++/27292
1533         * tree.c (rvalue): Convert bitfields to their declared types.
1534
1535         PR c++/27102
1536         * typeck2.c (cxx_incomplete_type_diagnostic): Handle
1537         TYPENAME_TYPE.
1538
1539 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
1540
1541         PR c++/27292
1542         * typeck.c (decay_conversion): Don't adjust bitfield types.
1543         (perform_integral_promotions): Treat bitfield enums as enums, not
1544         as short integer types.
1545         * tree.c (rvalue): Convert bitfields to their correct types.
1546
1547 2006-04-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1548
1549         PR c++/19963
1550         * class.c (layout_class_type): Skip fields with invalid types.
1551
1552 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
1553
1554         PR c++/26912
1555         * cp-tree.h (build_this_parm): Declare.
1556         (grok_method_quals): Remove.
1557         (build_memfn_type): Declare.
1558         (build_artificial_parm): Declare.
1559         (do_friend): Remove quals parameter.
1560         * decl.c (build_this_parm): New function.
1561         (grokfndecl): Use it.  Do not pass quals to grokclassfn.
1562         (grokdeclarator): Rename quals to memfn_quals.  Avoid allocating
1563         unnecessary TYPE_DECLs.  Correct qualification of member function
1564         types.  Tidy.
1565         * method.c (implicitly_declare_fn): Use build_this_parm.
1566         * friend.c (do_friend): Remove quals parameter.
1567         * decl2.c (grok_method_quals): Remove.
1568         (build_memfn_type): New function.
1569         (build_artificial_parm): Give it external linkage.
1570         (grokclassfn): Remove quals parameter.  Do not build "this"
1571         PARM_DECL here.
1572
1573         PR c++/26534
1574         * cp-tree.h (is_bitfield_expr_with_lowered_type): New function.
1575         * typeck.c (is_bitfield_expr_with_lowered_type): New function.
1576         (decay_conversion): Convert bitfield expressions to the correct
1577         type.
1578         (build_modify_expr): Remove spurious conversions.
1579         * class.c (layout_class_type): Modify the type of bitfields to
1580         indicate a limited range.
1581         * call.c (standard_conversion): Adjust the type of bitfield
1582         expressions used in an rvalue context.
1583         (build_conditional_expr): Likewise.
1584
1585 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
1586
1587         * decl.c: Fix comment typos.
1588
1589 2006-04-21  Eric Christopher  <echristo@apple.com>
1590
1591         * decl.c: Fix typo in function name.
1592
1593 2006-04-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1594
1595         PR c++/26558
1596         * parser.c (cp_parser_class_name): Check for invalid typenames.
1597         Rearrange code.
1598
1599         PR c++/26739
1600         * pt.c (tsubst_friend_function): Return early if
1601         pushdecl_namespace_level fails.
1602
1603         PR c++/26036
1604         * typeck.c (convert_arguments): Return error_mark_node instead of
1605         error_mark_list.
1606         * cp-tree.h (error_mark_list): Remove declaration.
1607         * decl.c (error_mark_list): Remove definition.
1608         (cxx_init_decl_processing): Do not initialize error_mark_list.
1609
1610         PR c++/10385
1611         * rtti.c (build_dynamic_cast_1): Check for invalid conversions
1612         before calling convert_to_reference.
1613         * cvt.c (convert_to_reference): Assert that reftype is a
1614         REFERENCE_TYPE.
1615
1616 2006-04-19  Mark Mitchell  <mark@codesourcery.com>
1617
1618         PR c++/27102
1619         * class.c (currently_open_class): Tidy.
1620         * decl.c (grokdeclarator): If we encounter an erroneous
1621         declarator, assume that we have already issued an error message
1622         and return.  Return error_mark_node instead of NULL_TREE in more
1623         places.  Issue errors about function definitions that do not have
1624         a function declarator.  Check for complete types for all function
1625         definitions.
1626         * cp-tree.h (cp_error_declarator): Remove.
1627         (currently_open_class): Change return type.
1628         * parser.c (cp_parser_id_expression): Add optional_p parameter.
1629         (cp_parser_parse_diagnose_invalid_type_name): Adjust calls.
1630         (cp_parser_id_expression): Likewise.
1631         (cp_parser_unqualified_id): If the name is optional, return
1632         NULL_TREE.
1633         (cp_parser_postfix_dot_deref_expression): Adjust calls.
1634         (cp_parser_type_parameter): Likewise.
1635         (cp_parser_unqualified_id): Likewise.
1636         (cp_parser_direct_declarator): Likewise.
1637         (cp_parser_declarator_id): Add optional_p parameter.
1638         (cp_parser_function_definition_from_specifiers_and_declarator):
1639         Assume that start_function indicates failure only if it has issued
1640         an error.
1641         (cp_parser_omp_var_list_no_open): Adjust calls.
1642
1643 2006-04-17  Janis Johnson  <janis187@us.ibm.com>
1644
1645         PR c++/26114, c++/26115
1646         * typeck.c (cxx_mark_addressable): Restore check for extra_warnings.
1647         * class.c (check_field_decls): Ditto.
1648
1649 2006-04-17  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1650
1651         * init.c (build_offset_ref): Remove superfluous temporary.
1652
1653 2006-04-16  Mark Mitchell  <mark@codesourcery.com>
1654
1655         PR c++/26365
1656         * typeck.c (finish_class_member_access_expr): Robustify
1657
1658 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
1659
1660         * Make-lang.in (cp/pt.o): Depend on vecprim.h.
1661         * pt.c: Include vecprim.h.
1662         (inline_parm_levels): Change the type to VEC(int,heap) *.
1663         (inline_parm_levels_used): Remove.
1664         (maybe_begin_member_template_processing,
1665         maybe_end_member_template_processing): Use VEC instead of
1666         VARRAY.
1667
1668         * cp/call.c: Fix comment typos.
1669
1670 2006-04-12  Mark Mitchell  <mark@codesourcery.com>
1671
1672         * parser.c (cp_parser_init_declarator): Initialize local variables
1673         aggressively.
1674
1675 2006-04-12  Roger Sayle  <roger@eyesopen.com>
1676
1677         * parser.c (cp_parser_init_declarator): Initialise
1678         is_parenthesized_init to false to avoid compiler warning.
1679
1680 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
1681
1682         * cp-tree.h (build_operator_new_call): Adjust prototype.
1683         (build_new_method_call): Likewise.
1684         (build_op_delete_call): Likewise.
1685         * init.c (build_raw_new_expr): New function.
1686         (build_new_1): Pass information as parameters, rather than
1687         bundling it into a NEW_EXPR.
1688         (build_new): Adjust accordingly.
1689         (build_vec_delete_1): Adjust for changes to build_op_delete_call.
1690         (build_delete): Likewise.
1691         * decl.c (finish_destructor_body): Likewise.
1692         * call.c (build_operator_new_call): Return the allocation function
1693         used.
1694         (build_op_delete_call): Take allocation function as parameter.
1695         (build_special_member_call): Adjust call to build_new_method_call.
1696         (build_new_method_call): Return function called.
1697         * pt.c (tsubst_copy_and_build): Adjust call to
1698         build_new_method_call.
1699         * semantics.c (finish_call_expr): Likewise.
1700         * parser.c (cp_parser_postfix_expression): Likewise.
1701         * typeck2.c (cxx_incomplete_type_diagnostic): Refer to
1702         "incomplete", not "undefined", types.
1703
1704         PR c++/26295
1705         * decl.c (grokdeclarator): Remove namespace-handling code for
1706         pointers-to-members.
1707         * parser.c (cp_parser_ptr_operator): Check for qualified names
1708         using namespaces.
1709
1710         PR c++/26122
1711         * parser.c (cp_parser_init_declarator): Adjust logic for deciding
1712         whether or not to look for a pure-specifier.
1713         (cp_parser_member_declaration): Likewise.
1714
1715 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
1716
1717         * decl2.c, pt.c, semantics.c: Fix comment typos.
1718
1719 2006-04-06  Roger Sayle  <roger@eyesopen.com>
1720
1721         * call.c (null_ptr_cst_p): Add explicit TREE_CONSTANT_OVERFLOW check.
1722
1723 2006-04-05  Jason Merrill  <jason@redhat.com>
1724
1725         * name-lookup.c (push_namespace_with_attribs): Temporarily disable
1726         default hidden visibility for anonymous namespace.
1727
1728 2006-03-29  Roger Sayle  <roger@eyesopen.com>
1729
1730         PR c++/22494
1731         * init.c (build_vec_delete_1): Convert BASE pointer's type to
1732         the base pointer type to avoid a type mismatch in the EQ_EXPR.
1733
1734 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
1735
1736         * search.c (maybe_suppress_debug_info): If
1737         flag_emit_class_debug_always then don't suppress.
1738
1739 2006-03-22  Jason Merrill  <jason@redhat.com>
1740
1741         * name-lookup.c (push_namespace_with_attribs): Only apply hidden
1742         visibility to anonymous namespaces if HAVE_GAS_HIDDEN.
1743
1744 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1745
1746         PR c++/26691
1747         * cp-gimplify.c (cxx_omp_clause_apply_fn): Handle default arguments.
1748
1749 2006-03-21  Jason Merrill  <jason@redhat.com>
1750
1751         PR c++/21581
1752         * parser.c (cp_parser_declaration): Support attributes on
1753         anonymous namespaces.
1754         * name-lookup.c (push_namespace_with_attribs): Anonymous
1755         namespaces default to hidden visibility.
1756
1757 2006-03-20  Jason Merrill  <jason@redhat.com>
1758
1759         PR c++/21764, c++/19238
1760         * decl.c (cp_finish_decl): Call determine_visibility later.
1761         (start_preparsed_function): Likewise.
1762         * cp-tree.h (CP_TYPE_CONTEXT, TYPE_NAMESPACE_SCOPE_P): New macros.
1763         (TYPE_CLASS_SCOPE_P, TYPE_FUNCTION_SCOPE_P): New macros.
1764         * name-lookup.h (struct cp_binding_level): Add has_visibility
1765         bitfield.
1766         * name-lookup.c: Include c-pragma.h.
1767         (push_namespace_with_attribs): Split out from push_namespace.
1768         Push visibility if appropriate.  Set TREE_PUBLIC on namespaces.
1769         (leave_scope): Pop visibility if appropriate.
1770         * decl2.c (determine_visibility_from_class): Split out from...
1771         (determine_visibility): ...here.  Handle function scope and
1772         nested classes.
1773         (import_export_decl): Move visibility handling to
1774         determine_visibility_from_class.
1775         * parser.c (cp_parser_declaration, cp_parser_namespace_name): Allow
1776         attributes on namespace declarations.
1777
1778 2006-03-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1779
1780         PR c++/6634
1781         * decl.c (grokdeclarator): Do not accept long long double.
1782         Reorganize checks for invalid (combinations of) type modifiers.
1783         Quote modifiers in messages.
1784
1785 2006-03-09  Jason Merrill  <jason@redhat.com>
1786
1787         PR c++/16387, c++/16389
1788         * typeck.c (cxx_alignof_expr, cxx_sizeof_expr): New functions.
1789         (cxx_sizeof_or_alignof_expr): Split out from here.
1790
1791 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
1792
1793         Merge from gomp-20050608-branch
1794
1795         2006-02-02  Diego Novillo  <dnovillo@redhat.com>
1796
1797                 * decl.c (pop_labels_1): Use appropriate pointer casting.
1798                 (poplevel_named_label_1): Likewise.
1799                 (named_label_entry_hash): Likewise.
1800                 (named_label_entry_eq): Likewise.
1801                 (check_goto): Likewise.
1802                 (define_label): Likewise.
1803
1804         2006-01-26  Diego Novillo  <dnovillo@redhat.com>
1805
1806                 * cp-tree.h (CP_OMP_CLAUSE_INFO): Use TREE_TYPE instead
1807                 of TREE_BLOCK.
1808                 * pt.c: Use OMP_CLAUSE_CODE and OMP_CLAUSE_OPERAND
1809                 instead of TREE_CODE/TREE_OPERAND.
1810                 * semantics.c: Likewise.
1811                 * parser.c: Likewise.
1812
1813         2005-11-10  Diego Novillo  <dnovillo@redhat.com>
1814
1815                 * parser.c (cp_parser_omp_threadprivate): Emit diagnostic if
1816                 target does not support TLS.
1817
1818         2005-11-09  Jakub Jelinek  <jakub@redhat.com>
1819
1820                 * decl.c (redeclaration_error_message): Don't error about
1821                 DECL_THREAD_LOCAL_P mismatches if CP_DECL_THREADPRIVATE_P
1822                 (olddecl).
1823
1824         2005-11-08  Jakub Jelinek  <jakub@redhat.com>
1825
1826                 PR c++/24735
1827                 * semantics.c (finish_omp_barrier, finish_omp_flush): New
1828                   functions.
1829                 * parser.c (cp_parser_omp_barrier): Call finish_omp_barrier.
1830                 (cp_parser_omp_flush): Call finish_omp_flush.
1831                 * cp-tree.h (finish_omp_barrier, finish_omp_flush): New
1832                   prototypes.
1833
1834                 PR c++/24734
1835                 * pt.c (tsubst_expr): Handle OMP_MASTER and OMP_ORDERED.
1836
1837         2005-11-03  Jakub Jelinek  <jakub@redhat.com>
1838
1839                 * semantics.c (finish_omp_threadprivate): Error on class-scope
1840                 variables.
1841
1842         2005-11-02  Jakub Jelinek  <jakub@redhat.com>
1843
1844                 * parser.c (cp_parser_omp_all_clauses): If some clause
1845                 type is not allowed, don't remove just one of the
1846                 clauses, but all clauses added in that loop round.
1847
1848                 * semantics.c (finish_omp_clauses): Fix function
1849                 comment. Don't handle non-const or mutable specially,
1850                 as const and not mutable is predetermined shared and
1851                 that leads to double error. Don't ICE if copyin var is
1852                 PARM_DECL.
1853
1854                 PR c++/24613
1855                 * parser.c (cp_parser_pragma): Diagnose
1856                 PRAGMA_OMP_SECTION outside of PRAGMA_OMP_SECTIONS
1857                 construct.
1858
1859                 * semantics.c (finish_omp_threadprivate): Error if V
1860                   is automatic variable or has incomplete type.
1861
1862         2005-11-01  Diego Novillo  <dnovillo@redhat.com>
1863
1864                 * parser.c (cp_parser_omp_all_clauses): Use
1865                 OMP_CLAUSE_CHAIN instead of TREE_CHAIN.
1866
1867         2005-11-01  Diego Novillo  <dnovillo@redhat.com>
1868
1869                 * parser.c (cp_parser_omp_all_clauses): When emitting an
1870                 error message, remove the invalid clause from the list.
1871
1872         2005-10-31  Diego Novillo  <dnovillo@redhat.com>
1873
1874                 * parser.c (cp_parser_omp_parallel): Do not allow 'nowait' in
1875                 combined parallel+workshare directives.
1876
1877         2005-10-31  Richard Henderson  <rth@redhat.com>
1878
1879                 * cp-objcp-common.h (LANG_HOOKS_OMP_CLAUSE_DTOR):
1880                 Use cxx_omp_clause_dtor.
1881                 * cp-tree.h (CP_OMP_CLAUSE_INFO): New.
1882                 (cxx_omp_clause_dtor): New.
1883                 * cp-gimplify.c (cxx_omp_clause_apply_fn): New.
1884                 (cxx_omp_clause_default_ctor): Use it.
1885                 (cxx_omp_clause_copy_ctor, cxx_omp_clause_assign_op):
1886                 Likewise.
1887                 (cxx_omp_clause_dtor): New.
1888                 * semantics.c (finish_omp_clauses): Rewrite cdtor
1889                 checking to fill in CP_OMP_CLAUSE_INFO.  Don't
1890                 specialcase LASTPRIVATE for removal.
1891                 (cxx_omp_clause_default_ctor, cxx_omp_clause_copy_ctor,
1892                 cxx_omp_clause_assign_op): Move to cp-gimplify.c.
1893
1894         2005-10-28  Jakub Jelinek  <jakub@redhat.com>
1895
1896                 * semantics.c (finish_omp_threadprivate): If
1897                   DECL_RTL_SET_P, call make_decl_rtl again so that
1898                   encode_section_info can update SYMBOL_REF's flags.
1899
1900         2005-10-26  Jakub Jelinek  <jakub@redhat.com>
1901
1902                 * semantics.c (finish_omp_for): Don't segfault if COND
1903                 or INCR is NULL.  If not calling c_finish_omp_for
1904                 right away and one of COND and INCR is NULL, issue
1905                 error and don't expand anything.
1906
1907                 PR c++/24512
1908                 * cp-tree.h (finish_omp_for): Add PRE_BODY argument.
1909                 * semantics.c (finish_omp_for): Likewise.  Set
1910                 OMP_FOR_PRE_BODY to PRE_BODY if deferring, add it
1911                 into the current statement list if not processing
1912                 template decl or pass it to c_finish_omp_for.
1913
1914                 * parser.c (cp_parser_omp_for_loop): Expand optional DECL_EXPRs
1915                 into PRE_BODY statement list.  Pass it to finish_omp_for.
1916                 * pt.c (tsubst_expr) <case OMP_FOR>: tsubst_expr also
1917                 OMP_FOR_PRE_BODY into PRE_BODY stmt list, pass it to
1918                 finish_omp_for.  Put all the statements into sk_omp
1919                 scope.
1920
1921         2005-10-25  Jakub Jelinek  <jakub@redhat.com>
1922
1923                 PR c++/24516
1924                 * parser.c (struct cp_parser): Rename in_iteration_statement
1925                 field to in_statement.
1926                 (IN_SWITCH_STMT, IN_ITERATION_STMT): Define.
1927                 (IN_OMP_BLOCK, IN_OMP_FOR): Change values.
1928                 (cp_parser_new, cp_parser_begin_omp_structured_block,
1929                 cp_parser_end_omp_structured_block,
1930                 cp_parser_omp_for_loop): Adjust for
1931                 in_iteration_statement renaming.
1932                 (cp_parser_selection_statement): Save
1933                 parser->in_iteration, or it temporarily with
1934                 IN_SWITCH_STMT for the
1935                 cp_parser_implicitly_scoped_statement call.
1936                 (cp_parser_iteration_statement): Adjust for
1937                 in_iteration_statement renaming.  Use
1938                 IN_ITERATION_STMT rather than true.
1939                 (cp_parser_jump_statement): Adjust for
1940                 in_iteration_statement renaming and new values.  Don't
1941                 error on break in a switch statement within OMP_FOR or
1942                 OpenMP structured block.
1943
1944                 PR c++/24513
1945                 * parser.c (cp_parser_cache_group): Don't stop if next
1946                 token is CPP_PRAGMA_EOL and end is CPP_PRAGMA_EOL as
1947                 well.  If current token is CPP_PRAGMA, consume
1948                 everything until CPP_PRAGMA_EOL inclusive.
1949
1950         2005-10-24  Jakub Jelinek  <jakub@redhat.com>
1951
1952                 PR c++/24502
1953                 * semantics.c (finish_omp_for): Handle MODOP_EXPR in
1954                 addition to MODIFY_EXPR.
1955
1956         2005-10-23  Richard Henderson  <rth@redhat.com>
1957
1958                 * cp-gimplify.c (struct cp_gimplify_ctx): Remove.
1959                 (bc_label): New.
1960                 (begin_bc_block, finish_bc_block): Use it.
1961                 (push_context, pop_context): Remove.
1962                 (cp_genericize): Don't use them.  Assert bc_label is null.
1963                 * semantics.c (finish_omp_clauses): Create a fake data
1964                 element of TYPE for probing ctors.
1965
1966         2005-10-23  Richard Henderson  <rth@redhat.com>
1967
1968                 * cp-objcp-common.h (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): New.
1969                 (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR): New.
1970                 (LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): New.
1971                 (LANG_HOOKS_OMP_CLAUSE_DTOR): New.
1972                 * semantics.c (finish_omp_clauses): Look through
1973                 arrays when looking up special member calls.  Also
1974                 remove FIRSTPRIVATE when LASTPRIVATE fails.
1975                 (cxx_omp_clause_default_ctor, cxx_omp_clause_copy_ctor): New.
1976                 (cxx_omp_clause_assign_op): New.
1977                 * cp-tree.h: Declare them.
1978
1979         2005-10-21  Richard Henderson  <rth@redhat.com>
1980
1981                 * decl.c (check_previous_goto_1): Return false if error.
1982                 (check_switch_goto): Likewise.
1983                 (finish_case_label): Don't emit the case label on error.
1984                 * parser.c (struct cp_parser): Revert
1985                 in_switch_statement_p changes.
1986                 (cp_parser_labeled_statement,
1987                 cp_parser_selection_statement): Likewise.
1988                 (cp_parser_begin_omp_structured_block): Don't save...
1989                 (cp_parser_end_omp_structured_block): or restore
1990                 in_switch_statement_p.
1991
1992         2005-10-21  Richard Henderson  <rth@redhat.com>
1993
1994                 * semantics.c (finish_omp_threadprivate): Set
1995                 decl_flags.u2sel when necessary.
1996
1997         2005-10-21  Richard Henderson  <rth@redhat.com>
1998
1999                 * decl.c (poplevel_named_label_1): Restore creation of the
2000                 bad_decls list.
2001                 (decl_jump_unsafe): Check for error_mark_node types.
2002                 (check_goto): Don't check cdtor_label.  Don't use identify_goto.
2003                 * semantics.c (finish_return_stmt): Do check_omp_return before
2004                 converting to cdtor_label goto.
2005
2006         2005-10-21  Richard Henderson  <rth@redhat.com>
2007
2008                 PR c++/24451
2009                 * decl.c (check_omp_return): Return false on error.
2010                 * cp-tree.h (check_omp_return): Update decl.
2011                 * semantics.c (finish_return_stmt): Avoid adding
2012                 return on error.
2013
2014         2005-10-21  Richard Henderson  <rth@redhat.com>
2015
2016                 * cp-tree.h (struct language_function): Remove
2017                 x_named_label_uses.
2018                 Change x_named_labels to a hashtable.
2019                 (check_omp_return): Declare.
2020                 * decl.c (struct named_label_use_entry): Rename from
2021                 named_label_use_list.  Remove label_decl.
2022                 (struct named_label_entry): Rename from
2023                 named_label_list.  Remove old_value and next.  Change
2024                 in_try_scope and in_catch_scope to bool. Add
2025                 in_omp_scope.
2026                 (pop_labels_1): New.
2027                 (pop_labels): Use it.
2028                 (pop_local_label, poplevel_named_label_1): New.
2029                 (poplevel): Use them.
2030                 (named_label_entry_hash, named_label_entry_eq): New.
2031                 (make_label_decl): Create named_labels.  Move label
2032                 creation bits from lookup_label.
2033                 (declare_local_label): Tidy.
2034                 (identify_goto): Split out from ...
2035                 (check_previous_goto_1): Add exited_omp argument.
2036                 Handle omp scopes.
2037
2038                 (use_label): Merge into...
2039                 (check_goto): ... here.  Handle omp scopes.
2040                 (check_omp_return): New.
2041                 (check_previous_gotos): Merge into...
2042                 (define_label): ... here.
2043                 (save_function_data): Remove x_named_label_uses reference.
2044                 (finish_function): Likewise.
2045                 * name-lookup.h (sk_omp): New.
2046                 * name-lookup.c (begin_scope): Handle it.
2047                 * parser.c (cp_parser_omp_for): Don't create extra
2048                 compound stmt.
2049
2050                 (cp_parser_omp_sections): Likewise.
2051                 * semantics.c (finish_return_stmt): Call check_omp_return.
2052                 (begin_omp_structured_block): Use sk_omp.
2053                 (finish_omp_structured_block): Use do_poplevel.  Don't build a
2054                 MUST_NOT_THROW expression here.
2055                 (begin_omp_parallel, finish_omp_parallel): Don't create extra
2056                 compound statements.
2057
2058         2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2059
2060                 PR 24455
2061                 * cp/cp-tree.h (struct lang_decl_flags): Add field
2062                 threadprivate_p.
2063                 (CP_DECL_IS_THREADPRIVATE): Define.
2064                 * cp/semantics.c (finish_omp_threadprivate): Set.  Do
2065                 not error out if CP_DECL_IS_THREADPRIVATE is set
2066                 already.
2067                 * cp/decl.c (duplicate_decls): Merge
2068                 CP_DECL_THREADPRIVATE_P.
2069
2070         2005-10-20  Richard Henderson  <rth@redhat.com>
2071
2072                 * cp-gimplify.c (cp_gimplify_omp_for): New.
2073                 (cp_gimplify_expr): Call it.
2074                 * cp-tree.h (OMP_FOR_GIMPLIFYING_P): New.
2075                 * parser.c (struct cp_parser): Rename
2076                 in_iteration_statement_p to in_iteration_statement and
2077                 change to unsigned char.  Similarly with
2078                 in_switch_statement.  Update all users.
2079                 (IN_OMP_BLOCK, IN_OMP_FOR): New.
2080                 (cp_parser_labeled_statement): Diagnose case labels
2081                 binding closer to an openmp block nested than the
2082                 switch.
2083                 (cp_parser_jump_statement): Diagnose break and
2084                 continue labels binding closer to an openmp block than
2085                 an iteration or switch.
2086                 (cp_parser_omp_for_loop): Mark in_iteration_statement
2087                 for an omp for.
2088                 (cp_parser_begin_omp_structured_block): New.
2089                 (cp_parser_end_omp_structured_block): New.
2090                 (cp_parser_omp_structured_block): Use them.
2091                 (cp_parser_omp_for, cp_parser_omp_sections_scope): Likewise.
2092                 (cp_parser_omp_parallel): Likewise.
2093
2094         2005-10-20  Richard Henderson  <rth@redhat.com>
2095
2096                 * semantics.c (begin_omp_structured_block): New.
2097                 (finish_omp_structured_block): New.
2098                 (begin_omp_parallel, finish_omp_parallel): Use them.
2099                 * parser.c (cp_parser_omp_structured_block): Likewise.
2100                 (cp_parser_omp_for): Likewise.
2101                 (cp_parser_omp_sections_scope): Likewise.
2102                 * cp-tree.h: Declare them.
2103
2104         2005-10-20  Richard Henderson  <rth@redhat.com>
2105
2106                 * parser.c (cp_parser_omp_master): Return the statement.
2107                 (cp_parser_omp_ordered): Likewise.
2108                 (cp_parser_omp_construct): Set the locus for them.
2109
2110         2005-10-19  Richard Henderson  <rth@redhat.com>
2111
2112                 * semantics.c (finish_omp_atomic): Revert to
2113                 uses_template_parms.
2114
2115         2005-10-19  Richard Henderson  <rth@redhat.com>
2116
2117                 * semantics.c (finish_omp_clauses): Avoid
2118                 DECL_THREAD_LOCAL_P on a PARM_DECL.  Remove some
2119                 stub asserts guaranteed to fail.
2120
2121         2005-10-19  Richard Henderson  <rth@redhat.com>
2122
2123                 * cp-tree.h (OMP_ATOMIC_DEPENDENT_P, OMP_ATOMIC_CODE): New.
2124                 (finish_omp_clauses, finish_omp_for, finish_omp_atomic): New.
2125                 * parser.c (cp_parser_omp_clause_copyin): Remove.
2126                 (cp_parser_omp_all_clauses): Use cp_parser_omp_var_list instead.
2127                 Call finish_omp_clauses.
2128                 (cp_parser_omp_clause_if): Don't do error checking here.
2129                 (cp_parser_omp_clause_num_threads): Likewise.
2130                 (cp_parser_omp_clause_schedule): Likewise.
2131                 (cp_parser_omp_atomic): Use finish_omp_atomic.
2132                 (cp_parser_omp_for_loop): Don't discard DECL_EXPR.
2133                 Don't decompose assignment statment here.  Use
2134                 finish_omp_for.
2135
2136                 * pt.c (tsubst_omp_clauses): New.
2137                 (tsubst_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
2138                 OMP_SINGLE, OMP_SECTION, OMP_CRITICAL, OMP_ATOMIC.
2139                 * semantics.c (finish_omp_clauses): New.
2140                 (begin_omp_parallel, finish_omp_parallel): Know Less about the
2141                 internals of the stmt_list stack.
2142                 (finish_omp_for, finish_omp_atomic): New.
2143
2144         2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2145
2146                 * semantics.c (cxx_omp_predetermined_sharing): New function.
2147                 * cp-tree.h (cxx_omp_predetermined_sharing): New prototype.
2148                 * cp-objcp-common.h
2149                 (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
2150
2151         2005-10-18  Richard Henderson  <rth@redhat.com>
2152
2153                 * parser.c (cp_parser_omp_single): Use make_node and accessors
2154                 instead of build.
2155
2156         2005-10-17  Richard Henderson  <rth@redhat.com>
2157
2158                 * parser.c (cp_parser_omp_for_loop): Handle declarations.
2159
2160         2005-10-12  Richard Henderson  <rth@redhat.com>
2161
2162                 * Make-lang.in (CXX_C_OBJS): Add c-omp.o.
2163                 * cp-tree.h (begin_omp_parallel, finish_omp_parallel): Declare.
2164                 (finish_omp_threadprivate): Declare.
2165                 * parser.c (struct cp_lexer): Add in_pragma.
2166                 (cp_lexer_consume_token): Don't consume a PRAGMA_EOL
2167                 when in_pragma.
2168                 (cp_parser_skip_to_closing_parenthesis): Stop at PRAGMA_EOL.
2169                 (cp_parser_skip_to_end_of_statement): Likewise.
2170                 (cp_parser_skip_to_end_of_block_or_statement): Likewise.
2171                 (cp_parser_skip_to_closing_brace): Likewise.
2172                 (cp_parser_skip_to_pragma_eol): Reset in_pragma.
2173                 (cp_parser_require_pragma_eol): New.
2174                 (cp_parser_statement): Add in_compound argument;
2175                 update all callers.
2176                 Restart if a non-statement pragma seen outside a
2177                 compound.
2178                 (cp_parser_statement_seq_opt): Stop at PRAGMA_EOL.
2179                 (cp_parser_declaration_seq_opt): Likewise.
2180                 (cp_parser_member_specification_opt): Likewise.
2181                 (cp_parser_function_definition_after_decl): Likewise.
2182                 (cp_parser_skip_until_found): Likewise.
2183                 (cp_parser_cache_group): Likewise.
2184                 (enum pragma_omp_clause, cp_parser_omp_clause_name,
2185                 check_no_duplicate_clause,
2186                 cp_parser_omp_var_list_no_open,
2187                 cp_parser_omp_var_list, cp_parser_omp_clause_copyin,
2188                 cp_parser_omp_clause_default, cp_parser_omp_clause_if,
2189                 cp_parser_omp_clause_nowait,
2190                 cp_parser_omp_clause_num_threads,
2191                 cp_parser_omp_clause_ordered,
2192                 cp_parser_omp_clause_reduction,
2193                 cp_parser_omp_clause_schedule,
2194                 cp_parser_omp_all_clauses,
2195                 cp_parser_omp_structured_block, cp_parser_omp_atomic,
2196                 cp_parser_omp_barrier, cp_parser_omp_critical,
2197                 cp_parser_omp_flush, cp_parser_omp_for_loop,
2198                 cp_parser_omp_for, cp_parser_omp_master,
2199                 cp_parser_omp_ordered, cp_parser_omp_sections_scope,
2200                 cp_parser_omp_sections, cp_parser_omp_parallel,
2201                 cp_parser_omp_single, cp_parser_omp_threadprivate,
2202                 cp_parser_omp_construct): New.
2203                 (cp_parser_pragma): Handle OpenMP pragmas.
2204                 * semantics.c (finish_omp_threadprivate): New.
2205                 (begin_omp_parallel, finish_omp_parallel): New.
2206
2207         2005-10-11  Richard Henderson  <rth@redhat.com>
2208
2209                 * parser.c (struct cp_token): Add pragma_kind.
2210                 (eof_token): Initialize it.
2211                 (cp_lexer_handle_pragma): Remove.
2212                 (cp_parser_initial_pragma): New.
2213                 (cp_lexer_new_main): Use it.
2214                 (cp_lexer_get_preprocessor_token): Initialize pragma_kind.
2215                 (cp_lexer_print_token): Don't handle CPP_PRAGMA.
2216                 (cp_parser_skip_to_pragma_eol): New.
2217                 (cp_parser_error): Use it.
2218                 (pragma_lex): New.
2219
2220         2005-10-09  Richard Henderson  <rth@redhat.com>
2221
2222                 * lex.c (parse_strconst_pragma): Update for c_lex name change.
2223                 (handle_pragma_java_exceptions): Likewise.
2224                 * parser.c (cp_lexer_new_main): Likewise.
2225
2226         2005-10-06  Richard Henderson  <rth@redhat.com>
2227
2228                 * parser.c (cp_lexer_new_main): Comment out defer_pragmas.
2229                 (cp_lexer_handle_pragma): Comment out
2230                 cpp_handle_deferred_pragma.
2231
2232         2005-10-01  Richard Henderson  <rth@redhat.com>
2233
2234                 * name-lookup.c (lookup_name): Remove prefer_type argument.
2235                 (lookup_name_prefer_type): New function.
2236                 * name-lookup.h (lookup_name_prefer_type): Declare it.
2237                 * decl.c (lookup_and_check_tag): Use it.
2238                 * pt.c (tsubst_friend_class): Likewise. Update for
2239                 lookup_name change.
2240                 (lookup_template_class, tsubst_copy_and_build): Likewise.
2241
2242 2006-03-06  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2243
2244         PR c++/15759
2245         * tree.c (bot_manip): Don't call mark_used.
2246
2247 2006-03-02  Mike Stump  <mrs@apple.com>
2248
2249         * decl2.c (import_export_decl): Remove redundant call to
2250         targetm.cxx.key_method_may_be_inline ().
2251
2252 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
2253
2254         * decl.c (start_decl): Use have_global_bss_p when deciding
2255         whether to make the decl common.
2256
2257 2006-03-01  Mike Stump  <mrs@apple.com>
2258
2259         PR darwin/25908
2260         * decl2.c (import_export_decl): Fix ABI breakage on darwin.
2261
2262 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
2263
2264         * except.c (expand_start_catch_block): Handle
2265         flag_use_cxa_get_exception_ptr.
2266
2267 2006-02-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2268
2269         PR c++/26291
2270         * decl.c (grok_op_properties): Check for ellipsis in arguments of
2271         operators.
2272
2273 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
2274
2275         * Make-lang.in (C++): Remove.
2276         (.PHONY): Remove C++.
2277
2278 2006-02-18  Mark Mitchell  <mark@codesourcery.com>
2279
2280         PR c++/26266
2281         * cp-tree.h (cp_finish_decl): Adjust declaration.
2282         (grokbitfield): Likewise.
2283         (finish_static_data_member_decl): Likewise.
2284         * init.c (constant_value_1): Ensure processing_template_decl when
2285         folding non-dependent initializers for static data members of
2286         dependent types.  Return error_mark_node for erroneous
2287         initailizers.
2288         * class.c (get_vtable_decl): Use finish_decl, not cp_finish_decl.
2289         * decl.c (cp_make_fname_decl): Adjust call to cp_finish_decl.
2290         (cp_finish_decl): Add init_const_expr_p parameter.  Set
2291         DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P here.
2292         (finish_decl): Adjust call to cp_finish_decl.
2293         (compute_array_index_type): Robustify.
2294         (start_method): Use finish_decl, not cp_finish_decl.
2295         * rtti.c (emit_tinfo_decl): Likewise.
2296         * except.c (initialize_handler_parm): Adjust call to
2297         cp_finish_decl.
2298         (expand_start_catch_block): Likewise.
2299         * cvt.c (build_up_reference): Adjust call to cp_finish_decl.
2300         * pt.c (instantiate_class_template): Adjust call to
2301         finish_static_data_member_decl.
2302         (tsubst_expr): Use finish_decl, not cp_finish_decl.
2303         (instantiate_decl): Adjust call to cp_finish_decl.
2304         * name-lookup.c (pushdecl_top_level_1): Use finish_decl, not
2305         cp_finish_decl.
2306         * decl2.c (finish_static_data_member_decl): Add init_const_expr_p
2307         parameter.
2308         (grokfield): Likewise.
2309         * parser.c (cp_parser_condition): Check for constant initializers.
2310         (cp_parser_init_declarator): Adjust calls to grokfield and
2311         cp_finish_decl.  Don't set
2312         DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P here.
2313         (cp_parser_member_declaration): Likewise.
2314         (cp_parser_objc_class_ivars): Likewise.
2315
2316 2006-02-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2317
2318         * call.c (standard_conversion): Return NULL instead of 0.
2319         (build_user_type_conversion_1): Likewise.
2320         (tourney): Likewise.
2321         * decl.c (redeclaration_error_message): Likewise.
2322         * error.c (language_to_string): Likewise.
2323
2324 2006-02-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2325
2326         * cp-tree.h (warn_hidden): Remove prototype.
2327         * class.c (warn_hidden): Make static.
2328
2329         * cp-tree.h (build_type_conversion): Remove prototype.
2330         * cvt.c (build_type_conversion): Add prototype, make static.
2331
2332         * cp-tree.h (push_tinst_level): Remove prototype.
2333         (pop_tinst_level): Likewise.
2334         * pt.c (push_tinst_level): Add prototype, make static.
2335         (pop_tinst_level): Likewise.
2336
2337 2006-02-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2338
2339         * decl.c (grokdeclarator): Return NULL_TREE instead of 0.
2340         * typeck.c (unary_complex_lvalue): Likewise.
2341
2342 2006-02-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2343
2344         * lex.c (parse_strconst_pragma): Return error_mark_node instead of
2345         "(tree)-1" to indicate failure.  Simplify.
2346         (handle_pragma_interface): Test for error_mark_node instead of
2347         "(tree)-1".
2348         (handle_pragma_implementation): Likewise.
2349
2350 2006-02-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2351
2352         PR c++/26151
2353         * parser.c (cp_parser_decl_specifier_seq): Check for duplicate
2354         decl-specifiers.  Remove extra check for duplicate 'friend'.
2355         * decl.c (grokdeclarator): Remove check for duplicate
2356         decl-specifiers.  Set longlong together with long_p.
2357
2358 2006-02-12  Jason Merrill  <jason@redhat.com>
2359
2360         PR c++/24996
2361         * except.c (build_throw): Add a CLEANUP_POINT_EXPR inside the
2362         TRY_CATCH_EXPR or MUST_NOT_THROW_EXPR.
2363
2364 2006-02-10  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2365
2366         * class.c (debug_class): Remove extern.
2367         (debug_thunks): Likewise.
2368
2369 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2370
2371         * typeck.c (string_conv_p): Don't test for flag_const_strings.
2372
2373 2006-02-08  Jason Merrill  <jason@redhat.com>
2374
2375         PR c++/25979
2376         * cp-gimplify.c (cp_gimplify_expr): Don't call
2377         cp_gimplify_init_expr for MODIFY_EXPRs.
2378         * typeck2.c (split_nonconstant_init_1): Use INIT_EXPR.
2379
2380 2006-02-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2381
2382         PR c++/26071
2383         * decl.c (grokdeclarator): Set dname also for destructor.
2384
2385         PR c++/26070
2386         * decl.c (grokdeclarator): Clear storage_class together with staticp.
2387
2388 2006-02-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2389
2390         * cp-tree.h (tf_warning_or_error): Renamed from tf_warn_or_error.
2391         (cp_build_qualified_type): Propogate renaming.
2392         * call.c (convert_like_real): Likewise.
2393         * cvt.c (cp_convert_to_pointer, convert_to_reference): Likewise.
2394         * decl.c (make_typename_type, grokdeclarator): Likewise.
2395         * pt.c (tsubst_friend_function, instantiate_class_template,
2396         tsubst_default_argument, instantiate_decl,
2397         tsubst_initializer_list, tsubst_enum): Likewise.
2398         * semantics.c (finish_template_type): Likewise.
2399         * typeck.c (build_ptrmemfunc, convert_for_assignment): Likewise.
2400
2401 2006-02-07  Dirk Mueller  <dmueller@suse.com>
2402
2403         * typeck.c (build_binary_op): Annotate div-by-zero
2404         warnings to make -Wno-div-by-zero have an effect.
2405
2406 2006-02-07  Mark Mitchell  <mark@codesourcery.com>
2407
2408         PR c++/9737
2409         * pt.c (coerce_template_template_parms): Do not templates with
2410         excess default arguments to match template template parameters
2411         with fewer parameters.
2412         (coerce_template_parms): Add use_default_args parameter; use
2413         default arguments only when true.
2414         (lookup_template_class): Adjust call to coerce_template_parms.
2415         (fn_type_unification): Likewise.
2416         (unify): Likewise.
2417         (get_bindings): Likewise.
2418         (dependent_type_p): Add assertions.
2419
2420 2006-02-06  Roger Sayle  <roger@eyesopen.com>
2421
2422         * decl.c (grokdeclarator): Don't bother checking for CHAR_TYPE.
2423         * rtti.c (typeinfo_in_lib_p): Likewise.
2424         * cp-tree.h (INTEGRAL_CODE_P, CP_INTEGRAL_TYPE_P): Likewise.
2425         * name-lookup.c (arg_assoc_type): Likewise.
2426
2427 2006-02-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2428
2429         * cp-tree.h (tf_warn_or_error): New substituion flag.
2430         (cp_build_qualified_type): Use it.
2431         * call.c (convert_like_real): Likewise.
2432         * cvt.c (cp_convert_to_pointer): Likewise.
2433         (convert_to_reference): Likewise.
2434         * decl.c (make_typename_type): Likewise.
2435         (grokdeclarator): Likewise.
2436         * pt.c (tsubst_friend_function): Likewise.
2437         (tsubst_friend_class): Likewise.
2438         (instantiate_class_template): Likewise.
2439         (tsubst_default_argument): Likewise.
2440         (instantiate_decl): Likewise.
2441         (tsubst_initializer_list): Likewise.
2442         (tsubst_enum): Likewise.
2443         * semantics.c (finish_template_type): Likewise.
2444         * typeck.c (build_ptrmemfunc): Likewise.
2445         (convert_for_assignment): Likewise.
2446
2447 2006-02-03  Lee Millward  <lee.millward@gmail.com>
2448
2449         * typeck.c (string_conv_p): Pass appropiate
2450         OPT_Wxxxx values when calling warning().
2451         (build_array_ref, cxx_mark_addressable): Likewise.
2452         (check_return_expr): Likewise.
2453
2454         * init.c (perform_member_init): Likewise.
2455         (sort_mem_initializers, emit_mem_initializers): Likewise.
2456
2457         * class.c (check_field_decls): Likewise.
2458         (warn_about_ambiguous_bases): Likewise.
2459
2460         * decl.c (pop_label, poplevel): Likewise.
2461         (duplicate_decls, grok_op_properties): Likewise.
2462         (start_preparsed_function, finish_function): Likewise.
2463
2464         * name-lookup.c (pushdecl_maybe_friend): Likewise.
2465         (pushdecl_maybe_friend): Likewise.
2466
2467         * parser.c (cp_parser_warn_min_max): Likewise.
2468         (cp_parser_cast_expression): Likewise.
2469
2470         * method.c (lazily_declare_fn): Likewise.
2471         * cvt.c (convert_to_void): Likewise.
2472         * mangle.c (finish_mangling): Likewise.
2473         * cp-gimplify.c (gimplify_expr_stmt): Likewise.
2474
2475 2006-02-03  Mark Mitchell  <mark@codesourcery.com>
2476
2477         * name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P,
2478         not IDENTIFIER_OPNAME_P.
2479
2480 2006-01-31  Mark Mitchell  <mark@codesourcery.com>
2481
2482         PR c++/25342
2483         * cp-tree.h (DECL_TEMPLATE_SPECIALIZATIONS): Revise
2484         documentation.
2485         * pt.c (determine_specialization): Use INNERMOST_TEMPLATE_PARMS,
2486         not TREE_VALUE.
2487         (instantiate_class_template): Simplify.
2488         (verify_class_unification): Remove.
2489         (unify): Document parameters.  Use INNERMOST_TEMPLATE_ARGS to
2490         permit multiple levels of template arguments.
2491         (more_specialized_class): Simplify.
2492         (get_class_bindings): Pass full arguments to unify.  Fold
2493         verify_class_unification into this function.  Return full
2494         arguments.
2495         (most_specialized_class): Adjust for changes to
2496         get_class_bindings.  Issue errors here for ambiguity.  Return the
2497         fully deduced arguments for the most specialized class, in
2498         addition to the partial specialization.
2499
2500 2006-01-31  Ben Elliston  <bje@au.ibm.com>
2501
2502         * mangle.c: Comment fix.
2503
2504 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2505
2506         * Make-lang.in (cp-warn): Include CXX_COMPAT_WARN.
2507         * repo.c (extract_string, afgets): Use cast when converting from
2508         void *.
2509
2510 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2511
2512         * call.c (alloc_conversion): Use cast when converting from void *.
2513         (alloc_conversions): Likewise.
2514         (add_candidate): Likewise.
2515         (print_z_candidates): Likewise.
2516         (add_warning): Likewise.
2517         * pt.c (retrieve_local_specialization): Likewise.
2518         (process_partial_specialization): Likewise.
2519         (mangle_class_name_for_template): Likewise.
2520         (tsubst_template_args): Likewise.
2521         * typeck2.c (pat_calc_hash): Likewise.
2522         (pat_compare): Likewise.
2523         (abstract_virtuals_error): Likewise.
2524         * class.c (method_name_cmp): Likewise.
2525         (resort_method_name_cmp): Likewise.
2526         (get_vfield_name): Likewise.
2527         * decl2.c (generate_ctor_and_dtor_functions_for_priority): Likewise.
2528         * lex.c (init_reswords): Likewise.
2529         * rtti.c (create_pseudo_type_info): Likewise.
2530         * search.c (dfs_lookup_base): Likewise.
2531         (dfs_dcast_hint_pre): Likewise.
2532         (dfs_dcast_hint_post): Likewise.
2533         * tree.c (hash_tree_cons): Likewise.
2534         * repo.c (extract_string): Likewise.
2535         (afgets): Likewise.
2536         * cp-objcp-common.c (decl_shadowed_for_var_lookup): Likewise.
2537         * g++spec.c (lang_specific_driver): Likewise.
2538
2539 2006-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2540
2541         * call.c (joust): Pass option code to warning.  Use inform for
2542         explanation.
2543         * class.c (check_bases): Likewise.
2544         (maybe_warn_about_overly_private_class): Likewise.
2545         (check_field_decls): Likewise.
2546         (layout_empty_base): Likewise.
2547         (layout_virtual_bases): Likewise.
2548         (layout_class_type): Likewise.
2549
2550 2006-01-28  Mark Mitchell  <mark@codesourcery.com>
2551
2552         PR c++/25999
2553         * decl.c (start_preparsed_function): Call maybe_apply_pragma_weak
2554         here, not ...
2555         (start_function): ... here.
2556
2557 2006-01-28  Mark Mitchell  <mark@codesourcery.com>
2558
2559         PR c++/25855
2560         * class.c (resolve_address_of_overloaded_function): Adjust use of
2561         return value from most_specialized_instantiation.
2562         * pt.c (determine_specialization): Avoid multiple calls to
2563         get_bindings.
2564         (most_specialized_instantiation): When a tie occurs, set the
2565         current presumed champion to the next template.  Return the
2566         TREE_LIST node containing the template, rather than the template
2567         itself.
2568         (most_specialized): Remove.
2569         * name-lookup.c (push_overloaded_decl): When duplicate_decls
2570         indicates a failed redeclaration, report that to callers.
2571
2572 2006-01-26  Jason Merrill  <jason@redhat.com>
2573
2574         PR c++/16021
2575         * name-lookup.c (parse_using_directive): Require strong using to
2576         name a nested namespace.
2577
2578 2006-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2579
2580         Revert:
2581         * cp-tree.h (do_poplevel): Remove prototype.
2582         * semantics.c (do_poplevel): Add prototype.  Make static.
2583
2584         Revert:
2585         * cp-tree.h (default_conversion): Remove prototype.
2586         * typeck.c (default_conversion): Make static.
2587
2588 2006-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2589
2590         * cp-tree.h (get_primary_binfo): Remove prototype.
2591         (push_using_decl): Likewise.
2592         (current_template_args): Likewise.
2593         (more_specialized_class): Likewise.
2594         (mark_class_instantiated): Likewise.
2595         (default_conversion): Likewise.
2596         (pfn_from_ptrmemfunc): Likewise.
2597         * class.c (get_primary_binfo): Add prototype, make static, simplify.
2598         * name-lookup.c (push_using_decl): Make static.
2599         * pt.c (current_template_args): Likewise.
2600         (more_specialized_class): Likewise.
2601         (mark_class_instantiated): Likewise.
2602         * typeck.c (default_conversion): Make static.
2603         (pfn_from_ptrmemfunc): Add prototype, make static.
2604
2605 2006-01-24  Dirk Mueller  <dmueller@suse.de>
2606
2607         * typeck.c (build_binary_op): Use OPT_Wfloat_equal in warning().
2608
2609 2006-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2610
2611         PR c++/25552
2612         * parser.c (cp_parser_unqualified_id): Check that destructor name
2613         and scope match.
2614         * call.c (check_dtor_name): Do not expect a BIT_NOT_EXPR.
2615         Adjust comment.  Return early if possible.
2616         Use same_type_p to compare types.
2617         * typeck.c (lookup_destructor): Adjust call to check_dtor_name.
2618
2619 2006-01-24  Mark Mitchell  <mark@codesourcery.com>
2620
2621         * semantics.c: Remove outdated comment.
2622
2623 2006-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2624
2625         * cp-tree.h (do_poplevel): Remove prototype.
2626         * semantics.c (do_poplevel): Add prototype.  Make static.
2627
2628         * cp-tree.h (original_type): Remove prototype.
2629         * typeck.c (original_type): Make static.
2630
2631         * cp-tree.h (declare_global_var): Remove prototype.
2632         * decl.c (declare_global_var): Make static.
2633
2634         * cp-tree.h (implicitly_declare_fn): Remove prototype.
2635         * method.c (implicitly_declare_fn): Make static.
2636
2637         * cp-tree.h (fold_decl_constant_value): Remove prototype.
2638         * pt.c (fold_decl_constant_value): Make static.
2639
2640         * cp-tree.h (build_x_delete): Remove prototype.
2641         * init.c (build_vec_delete_1): Call build_op_delete_call directly
2642         and not via build_x_delete.
2643         (build_x_delete): Remove.
2644
2645         * cp-tree.h (get_vtt_name): Remove prototype.
2646         * class.c (get_vtt_name): Remove.
2647         (build_vtt): Call mangle_vtt_for_type instead of get_vtt_name.
2648
2649 2006-01-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2650
2651         * rtti.c (build_dynamic_cast): Fix comment.
2652
2653 2006-01-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2654
2655         PR c++/10891
2656         * rtti.c (build_dynamic_cast): Reject dynamic_cast use if
2657         -fno-rtti.
2658
2659 2006-01-21  Mark Mitchell  <mark@codesourcery.com>
2660
2661         PR c++/25895
2662         * class.c (build_base_path): Generate a NOP_EXPR instead of a
2663         COMPONENT_REF if the base and derived classes are at the same
2664         address.
2665
2666         PR c++/25856
2667         * decl.c (begin_destructor_body): Robustify.
2668
2669         PR c++/25858
2670         * parser.c (cp_parser_direct_declarator): Robustify.
2671
2672 2006-01-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2673
2674         * parser.c (cp_lexer_next_token_is_keyword): Simplify.
2675
2676         * parser.c (clear_decl_specs): Remove prototype.
2677
2678         * parser.c (cp_parser_expression_fn): Remove.
2679
2680         * call.c (add_builtin_candidates): Remove superfluous return.
2681         * name-lookup.c (do_toplevel_using_decl): Likewise.
2682         * parser.c (cp_parser_type_specifier_seq): Likewise.
2683         (cp_parser_save_default_args): Likewise.
2684
2685 2006-01-20  Dirk Mueller  <dmueller@suse.com>
2686
2687         PR c++/5520
2688         * semantics.c (finish_if_stmt): Call empty_body_warning.
2689         * parser.c (cp_parser_implicitly_scoped_statement):
2690         Mark empty statement with an empty stmt.
2691
2692 2006-01-19  Mark Mitchell  <mark@codesourcery.com>
2693
2694         PR c++/22136
2695         * name-lookup.c (do_class_using_decl): Don't try to look up base
2696         classes in templates with dependent base types.
2697
2698 2006-01-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2699
2700         PR c++/25854
2701         * pt.c (maybe_process_partial_specialization): Return early on
2702         error_mark_node.
2703
2704 2006-01-19  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2705
2706         PR c++/16829
2707         * decl.c (start_preparsed_function): Check default arguments
2708         unconditionally.
2709         * name-lookup.c (pushdecl_maybe_friend): Check default arguments
2710         of all functions and function templates.
2711         * parser.c (cp_parser_late_parsing_default_args): Check default
2712         arguments.
2713         * decl2.c (check_default_args): Set missing default arguments to
2714         error_mark_node.
2715
2716 2006-01-18  Mark Mitchell  <mark@codesourcery.com>
2717
2718         PR c++/25836
2719         * cp-tree.h (push_class_stack): New function.
2720         (pop_class_stack): Likewise.
2721         * class.c (class_stack_node): Add hidden field.
2722         (pushclass): Clear it.
2723         (push_class_stack): New function.
2724         (pop_class_stack): Likewise.
2725         (currently_open_class): Ignore hidden classes.
2726         (currently_open_derived_class): Likewise.
2727         * name-lookup.c (push_to_top_level): Call push_class_stack.
2728         (pop_from_top_level): Call pop_class_stack.
2729
2730 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
2731
2732         * tree.c (find_tree_t, find_tree): Remove.
2733         * cp-tree.h: Remove the prototype for find_tree.
2734
2735 2006-01-18  Jakub Jelinek  <jakub@redhat.com>
2736
2737         * search.c (lookup_conversions_r): Fix a pasto.
2738
2739 2006-01-17  Eric Christopher  <echristo@apple.com>
2740
2741         * call.c (convert_like_real): When issuing conversion
2742         warnings, depend on OPT_Wconversion.
2743         * cvt.c (build_expr_type_conversion): Ditto.
2744
2745 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
2746
2747         * name-lookup.c (lookup_namespace_name): Remove.
2748         * name-lookup.h: Remove the prototype for
2749         lookup_namespace_name.
2750
2751 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2752
2753         PR c/25682
2754         * decl.c (compute_array_index_type): After issuing not an integral
2755         constant-expression error, set size to 1 to avoid ICEs later on.
2756
2757 2006-01-16  Ian Lance Taylor  <ian@airs.com>
2758
2759         * parser.c: Include "cgraph.h".
2760         (cp_parser_asm_definition): Call cgraph_add_asm_node rather than
2761         assemble_asm.
2762
2763 2006-01-16  Rafael �ila de Esp�dola  <rafael.espindola@gmail.com>
2764
2765         * g++spec.c (lang_specific_spec_functions): Remove.
2766
2767 2006-01-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2768
2769         * decl.c (check_initializer): Fix thinko.
2770
2771 2006-01-14  Mark Mitchell  <mark@codesourcery.com>
2772
2773         PR c++/25663
2774         * parser.c (cp_parser_direct_declarator): Use cp_parser_error
2775         instead of error.
2776
2777 2006-01-13  Jason Merrill  <jason@redhat.com>
2778
2779         * pt.c (check_explicit_specialization): Use CP_DECL_CONTEXT even more.
2780
2781         * name-lookup.c (set_decl_namespace): Use CP_DECL_CONTEXT.
2782         * pt.c (check_explicit_specialization): Likewise.
2783
2784 2006-01-12  Jason Merrill  <jason@redhat.com>
2785
2786         PR libstdc++/24660
2787         * pt.c (check_explicit_specialization): Handle namespace
2788         association.
2789         * name-lookup.c (set_decl_namespace): Likewise.
2790
2791 2006-01-12  Nathan Sidwell  <nathan@codesourcery.com>
2792
2793         PR c++/24824
2794         * class.c (handle_using_decl): Pass correct scope to
2795         cp_emit_debug_info_for_using.
2796
2797 2006-01-11  Nathan Sidwell  <nathan@codesourcery.com>
2798
2799         PR c++/25386
2800         * tree.c (lvalue_p_1): Any part of a COMPONENT_REF affects
2801         packedness.
2802
2803 2006-01-06  Gabriel Dos Reis  <gdr@integrablesolutions.net>
2804
2805         * parser.c (cp_parser_primary_expression): Document the grammar
2806         for the built-in offsetof, a GNU extension.
2807
2808 2006-01-04  Zdenek Dvorak <dvorakz@suse.cz>
2809
2810         PR c++/25632
2811         * init.c (constant_value_1): Unshare use of DECL_INITIAL.  Fix a typo
2812         in condition.
2813
2814 2006-01-04  Chris Lattner  <sabre@gnu.org>
2815
2816         * typeck2.c: update copyright to 2006
2817         (split_nonconstant_init_1):  Set TREE_CONSTANT to true.
2818
2819 2006-01-04  Mark Mitchell  <mark@codesourcery.com>
2820
2821         PR c++/24782
2822         * parser.c (cp_parser_nested_name_specifier_opt): Preserve access
2823         checks, even when parsing tentatively.
2824
2825 2006-01-04  Richard Henderson  <rth@redhat.com>
2826
2827         Merge from gomp branch.
2828         * lex.c (handle_pragma_java_exceptions): Fix whitespace.
2829         * parser.c (struct cp_token): Add pragma_kind.
2830         (eof_token): Update to match.
2831         (struct cp_lexer): Add in_pragma; rearrange next for better packing.
2832         (cp_parser_initial_pragma): New.
2833         (cp_lexer_new_main): Use it.  Don't bother clearing
2834         c_lex_return_raw_strings.
2835         (cp_lexer_get_preprocessor_token): Always initialize keyword
2836         and pragma_kind fields.  Handle CPP_PRAGMA.
2837         (cp_lexer_consume_token): Don't allow CPP_PRAGMA_EOL when
2838         in_pragma is set.
2839         (cp_lexer_handle_pragma): Remove.  Update callers to cp_parser_pragma.
2840         (cp_lexer_print_token) <CPP_PRAGMA>: Don't print as a string.
2841         (cp_parser_skip_to_pragma_eol): New.
2842         (cp_parser_error): Use it.
2843         (cp_parser_skip_to_closing_parenthesis): Stop at CPP_PRAGMA_EOL;
2844         rearrange with switch statement.
2845         (cp_parser_skip_to_end_of_statement): Likewise.
2846         (cp_parser_skip_to_end_of_block_or_statement): Likewise.
2847         (cp_parser_skip_to_closing_brace): Likewise.
2848         (cp_parser_skip_until_found): Likewise.
2849         (cp_parser_statement): Add in_compound argument; update callers.
2850         Use it to decide how to handle pragma parsing.
2851         (cp_parser_labeled_statement): Add in_compound argument; pass
2852         it on to cp_parser_statement.
2853         (cp_parser_statement_seq_opt): Stop at CPP_PRAGMA_EOL.
2854         (cp_parser_declaration_seq_opt): Likewise.
2855         (cp_parser_parameter_declaration): Likewise.
2856         (cp_parser_member_specification_opt): Likewise.
2857         (cp_parser_function_definition_after_decl): Likewise.
2858         (cp_parser_cache_group): Handle CPP_PRAGMA/CPP_PRAGMA_EOL pairs.
2859         (cp_parser_pragma): New.
2860         (pragma_lex): New.
2861
2862 2006-01-04  Dirk Mueller <dmueller@suse.com>
2863
2864         * decl.c (finish_constructor_body): create simple
2865         compound stmt instead of a if(1) { } construct.
2866
2867 2006-01-03  Mark Mitchell  <mark@codesourcery.com>
2868
2869         PR c++/25492
2870         * name-lookup.c (push_class_level_binding): When a derived class
2871         provides a type binding, eliminate any type binding from a base
2872         class.
2873
2874         PR c++/25625
2875         * repo.c (repo_emit_p): Always instantiate static data members
2876         initialized by constant expressions, so that there values are
2877         available.
2878
2879 2006-01-02  Mark Mitchell  <mark@codesourcery.com>
2880
2881         PR c++/25635
2882         * class.c (add_method): Set TYPE_HAS_CONVERSION for classes with a
2883         conversion operator.
2884         * decl.c (grokdeclarator): Do not set TYPE_HAS_CONVERSION here.
2885
2886         PR c++/25638
2887         * class.c (add_method): Never associate more than one destructor
2888         with a single class.
2889
2890         PR c++/25637
2891         * cp-tree.h (do_friend): Adjust prototype.
2892         * decl.c (grokfndecl): Make funcdef_flag a bool, not an int.
2893         (grokdeclarator): Likewise.  Refine check for invalid
2894         declarations/definitions of member functions outside of their own
2895         class.
2896         * friend.c (do_friend): Make funcdef_flag a bool, not an int.
2897
2898         PR c++/25633
2899         * parser.c (cp_parser_mem_initializer_list): Check result of
2900         cp_parser_mem_initializer against error_mark_node, not NULL_TREE.
2901         (cp_parser_mem_initializer): Return error_mark_node for failure.
2902
2903         PR c++/25634
2904         * parser.c (cp_parser_template_parameter_list): Call
2905         begin_template_parm_list and end_template_parm_list here.
2906         (cp_parser_type_parameter): Not here.
2907         (cp_parser_template_declaration_after_export): Or here.
2908         (cp_parser_elaborated_type_specifier): Call
2909         cp_parser_check_template_parameters.
2910
2911         * tree.c (build_target_expr_with_type): Use force_target_expr.
2912
2913         * decl2.c (mark_used): Fix typo in comment.
2914
2915 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2916
2917         * parser.c (cp_parser_using_declaration): Skip name-lookup on
2918         invalid scope.
2919
2920 2005-12-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2921
2922         * cxx-pretty-print.c (pp_cxx_constant): New.  Print
2923         string-literal in parens if input program says so.
2924         (pp_cxx_primary_expression): Hand off constant printing to
2925         pp_cxx_constant.
2926         (pp_cxx_pretty_printer_init): Set pp->c_base.constant.
2927         (pp_cxx_expression): Use pp_cxx_constant for literals.
2928         * error.c (dump_expr): Use pp_constant for literals.
2929
2930 2005-12-29  Nathan Sidwell  <nathan@codesourcery.com>
2931
2932         * method.c (make_thunk): Don't set comdat_linkage here.
2933         (use_thunk): Make thunk one only here, if thunk target is
2934         DECL_ONE_ONLY.
2935
2936 2005-12-26  Mark Mitchell  <mark@codesourcery.com>
2937
2938         PR c++/25439
2939         * decl.c (grokdeclarator): Remove dead code.
2940         * ptree.c (cxx_print_xnode): Handle BASELINK.
2941         * parser.c (make_id_declarator): Add sfk parameter.
2942         (cp_parser_direct_declarator): Do not pass TYPE_DECLs to
2943         make_id_declarator.
2944         (cp_parser_declarator_id): Simplify BASELINKs here.
2945         (cp_parser_member_declaration): Adjust calls to
2946         make_id_declarator.
2947
2948 2005-12-26  Mark Mitchell  <mark@codesourcery.com>
2949
2950         PR c++/23171, c++/23172, c++/25417.
2951         * typeck.c (build_unary_op): Create temporary variables for
2952         compound literals whose addresses are taken.
2953         * init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
2954         * decl.c (reshape_init_vector): Likewise.
2955         (reshape_init): Give it external linkage.
2956         (check_initializer): Use COMPOUND_LITERAL_P.
2957         (initialize_artificial_var): Allow the initializer to be a
2958         CONSTRUCTOR.
2959         * call.c (make_temporary_var_for_ref_to_temp): Use
2960         create_temporary_var.
2961         * cp-tree.h (COMPOUND_LITERAL_P): New macro.
2962         (rehape_init): Declare.
2963         * typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
2964         * semantics.c (finish_compound_literal): Use reshape_init.
2965
2966 2005-12-23  Mark Mitchell  <mark@codesourcery.com>
2967
2968         PR c++/24671
2969         * pt.c (instantiate_template): Handle SFINAE.
2970
2971 2005-12-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2972
2973         * decl.c (grokdeclarator): Improve diagnostic for friend
2974         declarations of class members.
2975
2976 2005-12-22  Mark Mitchell  <mark@codesourcery.com>
2977
2978         PR c++/25369
2979         * tree.c (really_overloaded_fn): Tweak comment.
2980         * pt.c (tsubst_call_declarator_parms): Remove.
2981         (tsubst_copy): Call mark_used on the member referenced by an
2982         OFFSET_REF.
2983         * semantics.c (finish_qualified_id_expr): Simplify.
2984         * decl2.c (mark_used): Accept BASELINKs.
2985
2986         PR c++/25364
2987         * typeck.c (build_unary_op): Pass DECLs not names to
2988         build_offset_refs.
2989         * init.c (build_offset_ref): Do not do name lookup.  Do not call
2990         mark_used.
2991         * call.c (build_call): Simplify and tidy.
2992         * semantics.c (finish_qualified_id_expr): Call mark_used.
2993
2994 2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2995
2996         PR c++/23333
2997         * parser.c (cp_parser_pure_specifier): Check for PURE_ZERO to
2998         identify a single '0'.
2999
3000 2005-12-20  Mark Mitchell  <mark@codesourcery.com>
3001
3002         PR c++/21228
3003         * decl.c (use_eh_spec_block): New function.
3004         (store_parm_decls): Use it.
3005         (finish_function): Likewise.
3006
3007 2005-12-19  Mark Mitchell  <mark@codesourcery.com>
3008
3009         PR c++/24278
3010         * init.c (expand_member_init): Print messages about baseclasses
3011         using %T rather than %D.
3012
3013         PR c++/24915
3014         * class.c (add_method): Do not treat templates as identical unless
3015         their return types are the same.
3016
3017 2005-12-12  Mark Mitchell  <mark@codesourcery.com>
3018
3019         PR c++/25300
3020         * tree.c (build_qualified_name): Return error_mark_node for
3021         erroneous input.
3022
3023 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
3024
3025         PR c++/25337
3026         * pt.c (tsubst_copy_and_build): Permit dependent types for the
3027         object in a class member access expression.
3028
3029 2005-12-10  Terry Laurenzo  <tlaurenzo@gmail.com>
3030
3031         PR java/9861
3032         * mangle.c (write_bare_function_type): Mangle return type for
3033         methods of Java classes
3034
3035 2005-12-08  Th�dore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3036
3037         * call.c (build_conditional_expr): Print types in error messages.
3038
3039 2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3040
3041         * expr.c (cxx_expand_expr): Call gcc_unreachable instead of abort.
3042
3043 2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3044
3045         * cp-gimplify.c (gimplify_cp_loop): Use fold_build3.
3046
3047 2005-12-07  Rafael �ila de Esp�dola  <rafael.espindola@gmail.com>
3048
3049         * Make-lang.in (c++.all.build, c++.install-normal): Remove.
3050
3051 2005-12-07  Rafael �ila de Esp�dola  <rafael.espindola@gmail.com>
3052
3053         * Make-lang.in: Remove all dependencies on s-gtype.
3054
3055 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
3056
3057         PR C++/24138
3058         * decl.c (reshape_init_array_1): Handle max_index of -1.
3059
3060 2005-12-06  Roger Sayle  <roger@eyesopen.com>
3061
3062         * typeck.c (build_binary_op): Issue warning if either operand of a
3063         comparison operator is a string literal, except for testing equality
3064         or inequality against NULL.
3065
3066 2005-12-06  Roger Sayle  <roger@eyesopen.com>
3067
3068         PR c++/25263
3069         * decl.c (compute_array_index_type): Check that itype is an
3070         INTEGER_CST node before testing/clearing TREE_OVERFLOW.
3071
3072 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
3073
3074         * ptree.c (cxx_print_decl): Update to check for decl_common
3075         structure.
3076
3077 2005-12-02  Mark Mitchell  <mark@codesourcery.com>
3078
3079         PR c++/24173
3080         * decl.c (duplicate_decls): Don't rely on DECL_TEMPLATE_INFO after
3081         clobbering newdecl.
3082
3083 2005-12-02  Richard Guenther  <rguenther@suse.de>
3084
3085         * semantics.c (simplify_aggr_init_expr): Use buildN instead
3086         of build.
3087
3088 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3089
3090         * parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of
3091         ggc_realloc.
3092         (cp_parser_template_argument_list): Use XRESIZEVEC instead of
3093         xrealloc.
3094         * class.c (pushclass): Likewise.
3095
3096 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3097
3098         * decl2.c (get_priority_info): Use XNEW, not xmalloc.
3099         * decl.c (push_switch): Likewise.
3100         * lex.c (handle_pragma_implementation): Likewise.
3101         * cp-objcp-common.c (decl_shadowed_for_var_insert): Use GGC_NEW,
3102         not ggc_alloc.
3103         (cxx_initialize_diagnostics): Use XNEW, not xmalloc.
3104         * class.c (init_class_processing): Use XNEWVEC, not xmalloc.
3105         * g++spec.c (lang_specific_driver): Likewise.
3106         * mangle.c (save_partially_mangled_name): Likewise.
3107         * parser.c (cp_lexer_new_main): Use GGC_NEWVEC, not ggc_alloc.
3108         (cp_parser_template_argument_list): Use XNEWVEC, nto xmalloc.
3109         (cp_parser_sizeof_operand): Likewise.
3110         * repo.c (open_repo_file, open_repo_file): Likewise.
3111
3112 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3113
3114         * parser.c (cp_parser_make_typename_type): Call make_typename_type
3115         with tf_none instead of magic value 0.
3116         (cp_parser_explicit_instantiation): Call do_type_instantiation
3117         with tf_error instead of magic value 1.
3118         (cp_parser_elaborated_type_specifier): Call make_typename_type
3119         with tf_error instead of magic value 1.
3120         (cp_parser_class_name): Likewise.
3121         (cp_parser_lookup_name): Likewise.
3122
3123 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3124
3125         * parser.c (cp_parser_declaration): Set token2.type to CPP_EOF,
3126         not RID_MAX.
3127
3128 2005-11-30  Jason Merrill  <jason@redhat.com>
3129
3130         PR c++/21123
3131         * cp-gimplify.c (cp_genericize_r): Don't dereference invisible reference
3132         parms in a thunk.
3133
3134 2005-11-30  Ben Elliston  <bje@au.ibm.com>
3135
3136         * typeck.c (build_x_unary_op): Correct spelling in error message.
3137
3138 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
3139
3140         PR c++/21166
3141         * class.c (check_field_decls): Only set DECL_PACKED on a field
3142         when its natural alignment is > BITS_PER_UNIT.
3143
3144 2005-11-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3145
3146         PR c++/24979
3147         * cp-tree.h (DECL_MAIN_P): Remove duplicate definition.
3148
3149 2005-11-26  Richard Henderson  <rth@redhat.com>
3150
3151         * lex.c: Update for pragma_lex rename.
3152         * parser.c: Likewise.
3153
3154 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3155
3156         PR c++/9278
3157         * decl.c (grokparms): Do not allow typedef-names in a '(void)'
3158         parmlist.
3159
3160 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3161
3162         * typeck2.c (process_init_constructor_union): Remove check for
3163         unnamed union members.
3164
3165 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3166
3167         * name-lookup.c (lookup_name_real): Merge two if's.
3168
3169 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3170
3171         * pt.c (instantiate_class_template): Clean-up.
3172
3173 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3174
3175         * pt.c (template_class_depth_real): Remove. Move functionality to ...
3176         (template_class_depth): ... here, replacing count_specializations
3177         with 0.  Adjust comment.
3178
3179 2005-11-24  Richard Guenther  <rguenther@suse.de>
3180         Dirk Mueller <dmueller@suse.de>
3181
3182         PR c++/14024
3183         * typeck.c (build_reinterpret_cast_1): Use
3184         strict_aliasing_warning.
3185
3186 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3187
3188         PR c++/24235
3189         * pt.c (check_instantiated_args): Reword diagnostic message about
3190         template argument involving local types.
3191
3192 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3193
3194         PR c++/21667
3195         * typeck.c (build_array_ref): Avoid code duplicate.  Use common
3196         C/C++ diagnostic function warn_array_subscript_with_type_char.
3197
3198 2005-11-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3199
3200         PR c++/22238
3201         * error.c (resolve_virtual_fun_from_obj_type_ref): New.
3202         (dump_expr): Use it in <case CALL_EXPR>.
3203
3204 2005-11-21  Richard Henderson  <rth@redhat.com>
3205
3206         * cp-objcp-common.h, name-lookup.c, name-lookup.h: Revert 11-18 patch.
3207
3208         * name-lookup.c (lookup_name): Remove prefer_type argument.
3209         (lookup_name_prefer_type): New.
3210         * decl.c (lookup_and_check_tag): Use them.
3211         * pt.c (tsubst_friend_class): Likewise.
3212         (lookup_template_class): Likewise.
3213         (tsubst_copy_and_build): Likewise.
3214         * name-lookup.h (lookup_name_prefer_type): New.
3215         (lookup_name): Remove declaration.
3216
3217 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
3218
3219         PR c++/8355
3220         * decl.c (grokfndecl): Set up DECL_TEMPLATE_INFO before calling
3221         set_decl_namespace.
3222         * name-lookup.c (set_decl_namespace):
3223
3224 2005-11-18  Mike Stump  <mrs@apple.com>
3225
3226         * cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
3227         * name-lookup.c (lookup_name_two): Remove.
3228         (lookup_name_one): Add.
3229         * name-lookup.h (lookup_name_two): Remove.
3230         (lookup_name_one): Add.
3231
3232 2005-11-15  Jason Merrill  <jason@redhat.com>
3233
3234         PR c++/24580
3235         * method.c (locate_copy): Also use skip_artificial_parms here.
3236         (synthesize_exception_spec): Use CLASS_TYPE_P rather than checking
3237         for RECORD_TYPE.
3238         (locate_ctor): Abort if we fail to find a default constructor.
3239
3240 2005-11-15  Mike Stump  <mrs@apple.com>
3241
3242         * name-lookup.c (lookup_name_two): Add.
3243         * name-lookup.h: Likewise.
3244
3245 2005-11-15  Mark Mitchell  <mark@codesourcery.com>
3246
3247         PR c++/24667
3248         * typeck.c (check_for_casting_away_constness): Use the diag_fn.
3249         (build_const_cast_1): Call it, for C-style casts.
3250
3251 2005-11-14  Mark Mitchell  <mark@codesourcery.com>
3252
3253         PR c++/24687
3254         * pt.c (check_explicit_specialization): Don't check for C linkage.
3255         (push_template_decl_real): Likewise.
3256         * parser.c (cp_parser_explicit_specialization): Check here.
3257         (cp_parser_template_declaration_after_export): And here.
3258
3259         * parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
3260         field.
3261
3262 2005-11-14  Jason Merrill  <jason@redhat.com>
3263
3264         PR c++/24580
3265         * method.c (locate_ctor): Skip all artificial parms, not just
3266         'this'.
3267
3268 2005-11-14  Mark Mitchell  <mark@codesourcery.com>
3269
3270         * parser.c (eof_token): Add initializer for ambiguous_p.
3271
3272 2005-11-13  Mark Mitchell  <mark@codesourcery.com>
3273
3274         PR c++/24817
3275         * decl.c (check_redeclaration_exception_specification): New
3276         function.
3277         (duplicate_decls): Use it.
3278         * error.c (fndecl_to_string): Print the template parameter list.
3279
3280         PR c++/20293
3281         * cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes
3282         for namespaces.
3283         (pp_cxx_original_namespace_definition): Likewise.
3284         * name-lookup.c (ambiguous_decl): Don't issue error messages;
3285         instead return lists of ambiguous candidates.
3286         (select_decl): Handle ambiguous namespace lookups.
3287         * parser.c (cp_token): Add ambiguous_p.
3288         (cp_lexer_get_preprocessor_token): Set it.
3289         (cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
3290         when a qualified name uses an invalid scope.
3291         (cp_parser_primary_expression): Print ambiguous candidates.
3292         (cp_parser_type_parameter): Adjust comment to reflect new
3293         parameter name for cp_parser_lookup_name.
3294         (cp_parser_template_argument): Likewise.
3295         (cp_parser_elaborated_type_specifier): Likewise.
3296         (cp_parser_namespace_name): Likewise.
3297         (cp_parser_class_name): Print ambiguous candidates.
3298         (cp_parser_lookup_name): Rename ambiguous_p parameter to
3299         ambiguous_decls.  Use it to return a list of ambiguous candiates
3300         when a lookup is ambiguous.
3301         (cp_parser_lookup_name_simple): Adjust comment to reflect new
3302         parameter name for cp_parser_lookup_name.
3303
3304 2005-11-12  Jakub Jelinek  <jakub@redhat.com>
3305
3306         PR c++/24780
3307         * typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING
3308         and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants
3309         of array type.
3310
3311         PR c++/24761
3312         * pt.c (tsubst_copy_asm_operands): New function.
3313         (tsubst_expr) <case ASM_EXPR>: Use it.
3314
3315 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3316
3317         PR c++/19450
3318         * decl.c (redeclaration_error_message): Issue diagnostics about
3319         olddecl and newdecl disagreement on __thread property.
3320         (grokdeclarator): Set DECL_TLS_MODEL on class static variables.
3321
3322 2005-11-08  Jason Merrill  <jason@redhat.com>
3323
3324         PR c++/21123
3325         * method.c (use_thunk): Use build_cplus_new instead of
3326         force_target_expr.
3327
3328 2005-11-06  Jason Merrill  <jason@redhat.com>
3329             James A. Morrison <phython@gcc.gnu.org>
3330
3331         PR c++/17256
3332         * decl2.c (cp_finish_file): Fix conditions for undefined warning.
3333         Set TREE_NO_WARNING instead of TREE_PUBLIC.
3334         * pt.c (instantiate_pending_templates): Set DECL_INITIAL to avoid
3335         a warning on a function we didn't instantiate because of excessive
3336         recursion.
3337
3338 2005-11-06  Mark Mitchell  <mark@codesourcery.com>
3339
3340         * class.c (record_subobject_offsets): Don't record offsets past
3341         biggest empty class for non-empty base classes.
3342         (layout_class_type): Use TYPE_SIZE_UNIT, not TYPE_SIZE, when
3343         keeping track of the size of emptyclasses.
3344
3345         PR c++/21308
3346         * class.c (sizeof_biggest_empty_class): New variable.
3347         (record_subobject_offsets): Don't record offsets past biggest
3348         empty class for data members.  Replace vbases_p parameter with
3349         is_data_member parameter.
3350         (build_base_field): Adjust call.
3351         (layout_class_type): Likewise.  Maintain
3352         sizeof_biggest_empty_class.
3353
3354 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
3355
3356         * decl2.c, init.c, typeck.c: Fix comment typos.
3357
3358 2005-11-04  Richard Guenther  <rguenther@suse.de>
3359
3360         PR c++/22487
3361         * init.c (build_vec_init): Build comparison of matching
3362         types.
3363
3364 2005-11-03  Josh Conner  <jconner@apple.com>
3365
3366         PR c++/19989
3367         pt.c (tsubst): Accept zero-length array if tf_error is set
3368         in complain flags.  Change error message for negative-
3369         length array.
3370
3371 2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
3372
3373         * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list*
3374         parameter.
3375
3376 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3377
3378         PR c++/17964
3379         * error.c (cp_cpp_error): New function.
3380         * cp-tree.h (cp_cpp_error): Declare.
3381         * parser.c (cp_lexer_new_main): Set CPP option client_diagnostic
3382         and error callback after lexing.
3383
3384 2005-11-03  Mark Mitchell  <mark@codesourcery.com>
3385
3386         PR c++/21627
3387         * pt.c (register_specialization): Update inline flags on clones.y
3388
3389 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3390
3391         PR c++/24582
3392         * decl.c (declare_local_label): Return 0 for variables
3393         with error_mark_node as their types.
3394
3395 2005-11-02  Mark Mitchell  <mark@codesourcery.com>
3396
3397         PR c++/22434
3398         * call.c (build_conditional_expr): Do bad conversions, if there's
3399         no other choice.
3400
3401         PR c++/24560
3402         * parser.c (cp_parser_postfix_dot_deref_expression): Improve error
3403         message for use of overloaded functions on LHS of "." operator.
3404
3405         PR c++/19253
3406         * parser.c (cp_parser_postfix_expression): Use
3407         cp_parser_elaborated_type_specifier to handle typename-types in
3408         functional casts.
3409         (cp_parser_enclosed_argument_list): Skip ahead to the end of the
3410         template argument list if the closing ">" is not found.
3411
3412         PR c++/24569
3413         * pt.c (instantiate_decl): Use cp_finish_decl, not
3414         finish_static_data_member_decl.
3415
3416 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
3417
3418         * decl.c (grokfndecl): Remove the setting
3419         of the return type of the function type
3420         of main after erroring about must returning
3421         int.
3422
3423 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
3424
3425         PR C++/23229
3426         * decl.c (grokfndecl): Create a new function type
3427         after erroring out about main not returning int.
3428
3429 2005-10-28  Josh Conner  <jconner@apple.com>
3430
3431         PR c++/22153
3432         * parser.c (cp_parser_member_declaration): Detect and handle
3433         a template specialization.
3434
3435 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
3436
3437         PR C++/23426
3438         * decl.c (start_decl): Check that the decl is an
3439         error_mark_node before getting the type.
3440         Remove the check for the decl's type being an
3441         error_mark_node.
3442
3443 2005-10-21  Mark Mitchell  <mark@codesourcery.com>
3444
3445         PR c++/24260
3446         * parser.c (cp_parser_init_declarator): Pass attributes to
3447         grokfield.
3448
3449 2005-10-20  Mark Mitchell  <mark@codesourcery.com>
3450
3451         PR c++/22618
3452         * search.c (acce