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
decebe51
Commit
decebe51
authored
Jun 14, 2006
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Jun 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* typeck.c (build_modify_expr): Tidy diagnostic message.
From-SVN: r114658
parent
cf24598a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/typeck.c
+6
-1
No files found.
gcc/cp/ChangeLog
View file @
decebe51
2006-06-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
* typeck.c (build_modify_expr): Tidy diagnostic message.
2006-06-14 Mark Mitchell <mark@codesourcery.com>
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/28018
PR c++/28018
...
...
gcc/cp/typeck.c
View file @
decebe51
...
@@ -5708,7 +5708,12 @@ build_modify_expr (tree lhs, enum tree_code modifycode, tree rhs)
...
@@ -5708,7 +5708,12 @@ build_modify_expr (tree lhs, enum tree_code modifycode, tree rhs)
/* Allow array assignment in compiler-generated code. */
/* Allow array assignment in compiler-generated code. */
if
(
!
DECL_ARTIFICIAL
(
current_function_decl
))
if
(
!
DECL_ARTIFICIAL
(
current_function_decl
))
{
{
error
(
"array used as initializer"
);
/* This routine is used for both initialization and assignment.
Make sure the diagnostic message differentiates the context. */
if
(
modifycode
==
INIT_EXPR
)
error
(
"array used as initializer"
);
else
error
(
"invalid array assignment"
);
return
error_mark_node
;
return
error_mark_node
;
}
}
...
...
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