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