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
e867a179
Commit
e867a179
authored
Feb 23, 2000
by
Nathan Sidwell
Committed by
Nathan Sidwell
Feb 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (decls_match): Remove obsolete static member nadgering.
From-SVN: r32115
parent
2148624a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+1
-21
No files found.
gcc/cp/ChangeLog
View file @
e867a179
2000-02-23 Nathan Sidwell <nathan@codesourcery.com>
* decl.c (decls_match): Remove obsolete static member nadgering.
2000-02-21 Martin v. Lwis <loewis@informatik.hu-berlin.de>
* decl.c (grokdeclarator): Change ANSI to ISO.
...
...
gcc/cp/decl.c
View file @
e867a179
...
...
@@ -2810,28 +2810,8 @@ decls_match (newdecl, olddecl)
&&
DECL_LANGUAGE
(
olddecl
)
==
lang_c
))
return
0
;
/* When we parse a static member function definition,
we put together a FUNCTION_DECL which thinks its type
is METHOD_TYPE. Change that to FUNCTION_TYPE, and
proceed. */
if
(
TREE_CODE
(
f1
)
==
METHOD_TYPE
&&
DECL_STATIC_FUNCTION_P
(
olddecl
))
revert_static_member_fn
(
&
newdecl
,
&
f1
,
&
p1
);
else
if
(
TREE_CODE
(
f2
)
==
METHOD_TYPE
&&
DECL_STATIC_FUNCTION_P
(
newdecl
))
revert_static_member_fn
(
&
olddecl
,
&
f2
,
&
p2
);
/* Here we must take care of the case where new default
parameters are specified. Also, warn if an old
declaration becomes ambiguous because default
parameters may cause the two to be ambiguous. */
if
(
TREE_CODE
(
f1
)
!=
TREE_CODE
(
f2
))
{
if
(
TREE_CODE
(
f1
)
==
OFFSET_TYPE
)
cp_compiler_error
(
"`%D' redeclared as member function"
,
newdecl
);
else
cp_compiler_error
(
"`%D' redeclared as non-member function"
,
newdecl
);
return
0
;
}
return
0
;
if
(
same_type_p
(
TREE_TYPE
(
f1
),
TREE_TYPE
(
f2
)))
{
...
...
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