Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c0cc28e1
Commit
c0cc28e1
authored
Jan 25, 1995
by
David S. Miller
Committed by
Richard Kenner
Jan 25, 1995
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(store_init_value): Change error message text.
From-SVN: r8818
parent
59be0cdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/cp/typeck2.c
+6
-6
No files found.
gcc/cp/typeck2.c
View file @
c0cc28e1
/* Report error messages, build initializers, and perform
/* Report error messages, build initializers, and perform
some front-end optimizations for C++ compiler.
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)
Hacked by Michael Tiemann (tiemann@cygnus.com)
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -503,18 +503,18 @@ store_init_value (decl, init)
...
@@ -503,18 +503,18 @@ store_init_value (decl, init)
/* Check that we're really an aggregate as ARM 8.4.1 defines it. */
/* Check that we're really an aggregate as ARM 8.4.1 defines it. */
if (CLASSTYPE_N_BASECLASSES (type))
if (CLASSTYPE_N_BASECLASSES (type))
cp_error_at ("initializer list construction i
llegal
for derived class object `%D'", decl);
cp_error_at ("initializer list construction i
nvalid
for derived class object `%D'", decl);
if (CLASSTYPE_VTBL_PTR (type))
if (CLASSTYPE_VTBL_PTR (type))
cp_error_at ("initializer list construction i
llegal
for polymorphic class object `%D'", decl);
cp_error_at ("initializer list construction i
nvalid
for polymorphic class object `%D'", decl);
if (TYPE_NEEDS_CONSTRUCTING (type))
if (TYPE_NEEDS_CONSTRUCTING (type))
{
{
cp_error_at ("initializer list construction i
llegal
for `%D'", decl);
cp_error_at ("initializer list construction i
nvalid
for `%D'", decl);
error ("due to the presence of a constructor");
error ("due to the presence of a constructor");
}
}
for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field))
for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field))
if (TREE_PRIVATE (field) || TREE_PROTECTED (field))
if (TREE_PRIVATE (field) || TREE_PROTECTED (field))
{
{
cp_error_at ("initializer list construction i
llegal
for `%D'", decl);
cp_error_at ("initializer list construction i
nvalid
for `%D'", decl);
cp_error_at ("due to non-public access of member `%D'", field);
cp_error_at ("due to non-public access of member `%D'", field);
}
}
funcs = TYPE_METHODS (type);
funcs = TYPE_METHODS (type);
...
@@ -524,7 +524,7 @@ store_init_value (decl, init)
...
@@ -524,7 +524,7 @@ store_init_value (decl, init)
field = TREE_VEC_ELT (funcs, func);
field = TREE_VEC_ELT (funcs, func);
if (field && (TREE_PRIVATE (field) || TREE_PROTECTED (field)))
if (field && (TREE_PRIVATE (field) || TREE_PROTECTED (field)))
{
{
cp_error_at ("initializer list construction i
llegal
for `%D'", decl);
cp_error_at ("initializer list construction i
nvalid
for `%D'", decl);
cp_error_at ("due to non-public access of member `%D'", field);
cp_error_at ("due to non-public access of member `%D'", field);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment