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
04ec0065
Commit
04ec0065
authored
Jul 12, 2002
by
Mark Mitchell
Committed by
Mark Mitchell
Jul 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c (add_method): Correct handling of conversion operators.
From-SVN: r55419
parent
5a363fc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/class.c
+4
-1
No files found.
gcc/cp/ChangeLog
View file @
04ec0065
2002-07-12 Mark Mitchell <mark@codesourcery.com>
* class.c (add_method): Correct handling of conversion operators.
2002-07-11 Mark Mitchell <mark@codesourcery.com>
PR c++/7224
...
...
gcc/cp/class.c
View file @
04ec0065
...
...
@@ -999,7 +999,10 @@ add_method (type, method, error_p)
if
(
!
DECL_STATIC_FUNCTION_P
(
method
))
parms2
=
TREE_CHAIN
(
parms2
);
if
(
same
&&
compparms
(
parms1
,
parms2
))
if
(
same
&&
compparms
(
parms1
,
parms2
)
&&
(
!
DECL_CONV_FN_P
(
fn
)
||
same_type_p
(
TREE_TYPE
(
TREE_TYPE
(
fn
)),
TREE_TYPE
(
TREE_TYPE
(
method
)))))
{
if
(
using
&&
DECL_CONTEXT
(
fn
)
==
type
)
/* Defer to the local function. */
...
...
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