diff options
author | David S. Miller <davem@nadzieja.rutgers.edu> | 1995-01-25 15:01:21 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-01-25 15:01:21 -0500 |
commit | c0cc28e13da3b0cda0d577cdd2d455b394668f8c (patch) | |
tree | 6c1a84141ede7d547256ea4eb9bbe8c09a290c90 | |
parent | 59be0cdd8bbd00cbb0b081dc336bdc0aa2d92c33 (diff) | |
download | gcc-c0cc28e13da3b0cda0d577cdd2d455b394668f8c.zip gcc-c0cc28e13da3b0cda0d577cdd2d455b394668f8c.tar.gz gcc-c0cc28e13da3b0cda0d577cdd2d455b394668f8c.tar.bz2 |
(store_init_value): Change error message text.
From-SVN: r8818
-rw-r--r-- | gcc/cp/typeck2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index e5e9c8e..fabba84 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1,6 +1,6 @@ /* Report error messages, build initializers, and perform some front-end optimizations for C++ compiler. - Copyright (C) '87, '88, '89, '92, 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92, 93, 94, 1995 Free Software Foundation, Inc. Hacked by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -503,18 +503,18 @@ store_init_value (decl, init) /* Check that we're really an aggregate as ARM 8.4.1 defines it. */ if (CLASSTYPE_N_BASECLASSES (type)) - cp_error_at ("initializer list construction illegal for derived class object `%D'", decl); + cp_error_at ("initializer list construction invalid for derived class object `%D'", decl); if (CLASSTYPE_VTBL_PTR (type)) - cp_error_at ("initializer list construction illegal for polymorphic class object `%D'", decl); + cp_error_at ("initializer list construction invalid for polymorphic class object `%D'", decl); if (TYPE_NEEDS_CONSTRUCTING (type)) { - cp_error_at ("initializer list construction illegal for `%D'", decl); + cp_error_at ("initializer list construction invalid for `%D'", decl); error ("due to the presence of a constructor"); } for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field)) if (TREE_PRIVATE (field) || TREE_PROTECTED (field)) { - cp_error_at ("initializer list construction illegal for `%D'", decl); + cp_error_at ("initializer list construction invalid for `%D'", decl); cp_error_at ("due to non-public access of member `%D'", field); } funcs = TYPE_METHODS (type); @@ -524,7 +524,7 @@ store_init_value (decl, init) field = TREE_VEC_ELT (funcs, func); if (field && (TREE_PRIVATE (field) || TREE_PROTECTED (field))) { - cp_error_at ("initializer list construction illegal for `%D'", decl); + cp_error_at ("initializer list construction invalid for `%D'", decl); cp_error_at ("due to non-public access of member `%D'", field); } } |