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
34332678
Commit
34332678
authored
Apr 29, 2000
by
Cosmin Truta
Committed by
Jason Merrill
Apr 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grok_op_properties): Add an extra check of argtypes.
From-SVN: r33524
parent
62014cb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+15
-14
No files found.
gcc/cp/ChangeLog
View file @
34332678
2000-04-28 Cosmin Truta <cosmint@cs.ubbcluj.ro>
* decl.c (grok_op_properties): Add an extra check of argtypes.
2000-04-28 Jason Merrill <jason@casey.cygnus.com>
* optimize.c (initialize_inlined_parameters): Call
...
...
gcc/cp/decl.c
View file @
34332678
...
...
@@ -12361,20 +12361,21 @@ grok_op_properties (decl, virtualp, friendp)
cp_warning
(
"`%D' should return by value"
,
decl
);
/* 13.4.0.8 */
if
(
argtypes
)
for
(;
argtypes
!=
void_list_node
;
argtypes
=
TREE_CHAIN
(
argtypes
))
if
(
TREE_PURPOSE
(
argtypes
))
{
TREE_PURPOSE
(
argtypes
)
=
NULL_TREE
;
if
(
name
==
ansi_opname
[(
int
)
POSTINCREMENT_EXPR
]
||
name
==
ansi_opname
[(
int
)
POSTDECREMENT_EXPR
])
{
if
(
pedantic
)
cp_pedwarn
(
"`%D' cannot have default arguments"
,
decl
);
}
else
cp_error
(
"`%D' cannot have default arguments"
,
decl
);
}
for
(;
argtypes
&&
argtypes
!=
void_list_node
;
argtypes
=
TREE_CHAIN
(
argtypes
))
if
(
TREE_PURPOSE
(
argtypes
))
{
TREE_PURPOSE
(
argtypes
)
=
NULL_TREE
;
if
(
name
==
ansi_opname
[(
int
)
POSTINCREMENT_EXPR
]
||
name
==
ansi_opname
[(
int
)
POSTDECREMENT_EXPR
])
{
if
(
pedantic
)
cp_pedwarn
(
"`%D' cannot have default arguments"
,
decl
);
}
else
cp_error
(
"`%D' cannot have default arguments"
,
decl
);
}
}
}
...
...
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