diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2008-06-21 10:36:27 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2008-06-21 11:36:27 +0100 |
commit | 37ec60ed2c973aa38044e19e3d16b5fa1e5c0a6b (patch) | |
tree | cb7e944c3d3117169e18ab65ba86da1ea5ad04f8 /gcc/cp/init.c | |
parent | 6c813b1005d86bcfc33a4dfdf12cadf425191a30 (diff) | |
download | gcc-37ec60ed2c973aa38044e19e3d16b5fa1e5c0a6b.zip gcc-37ec60ed2c973aa38044e19e3d16b5fa1e5c0a6b.tar.gz gcc-37ec60ed2c973aa38044e19e3d16b5fa1e5c0a6b.tar.bz2 |
typeck.c (composite_pointer_type_r, [...]): Change pedwarn to permerror.
* typeck.c (composite_pointer_type_r, cxx_sizeof_expr,
cxx_alignof_expr, check_template_keyword, cp_build_binary_op,
pointer_diff, cp_build_unary_op, build_x_compound_expr_from_list,
build_reinterpret_cast_1, cp_build_c_cast, check_return_expr): Change
pedwarn to permerror.
* init.c (perform_member_init, build_new_1, build_new): Likewise.
* decl.c (warn_extern_redeclared_static, duplicate_decls,
* identify_goto, check_previous_goto_1, check_goto, define_label,
check_tag_decl, start_decl, check_class_member_definition_namespace,
grokfndecl, grokdeclarator): Likewise.
* except.c (check_handlers): Likewise.
* typeck2.c (digest_init): Likewise.
* pt.c (check_specialization_namespace,
check_explicit_instantiation_namespace,
maybe_process_partial_specialization, check_explicit_specialization,
convert_template_argument, do_decl_instantiation,
do_type_instantiation, instantiate_decl): Likewise.
* semantics.c (finish_template_type_parm): Likewise.
* name-lookup.c (pushdecl_maybe_friend,
check_for_out_of_scope_variable): Likewise.
* decl2.c (finish_static_data_member_decl, build_anon_union_vars,
coerce_new_type): Likewise.
* parser.c (cp_parser_nested_name_specifier_opt,
cp_parser_mem_initializer, cp_parser_elaborated_type_specifier,
cp_parser_class_head, cp_parser_check_class_key): Likewise.
(cp_parser_parameter_declaration): Check flag_permissive instead of
flag_pedantic_errors.
* call.c (joust): Change pedwarn to warning.
* friend.c (make_friend_class): Likewise.
From-SVN: r136999
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index dab7dc8..0c38a7f 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -533,11 +533,11 @@ perform_member_init (tree member, tree init) } /* member traversal: note it leaves init NULL */ else if (TREE_CODE (type) == REFERENCE_TYPE) - pedwarn ("%Juninitialized reference member %qD", - current_function_decl, member); + permerror ("%Juninitialized reference member %qD", + current_function_decl, member); else if (CP_TYPE_CONST_P (type)) - pedwarn ("%Juninitialized member %qD with %<const%> type %qT", - current_function_decl, member, type); + permerror ("%Juninitialized member %qD with %<const%> type %qT", + current_function_decl, member, type); } else if (TREE_CODE (init) == TREE_LIST) /* There was an explicit member initialization. Do some work @@ -2158,7 +2158,7 @@ build_new_1 (tree placement, tree type, tree nelts, tree init, else if (init) { if (complain & tf_error) - pedwarn ("ISO C++ forbids initialization in array new"); + permerror ("ISO C++ forbids initialization in array new"); else return error_mark_node; } @@ -2370,7 +2370,7 @@ build_new (tree placement, tree type, tree nelts, tree init, if (!build_expr_type_conversion (WANT_INT | WANT_ENUM, nelts, false)) { if (complain & tf_error) - pedwarn ("size in array new must have integral type"); + permerror ("size in array new must have integral type"); else return error_mark_node; } |