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
3070ba0b
Commit
3070ba0b
authored
26 years ago
by
Jason Merrill
Committed by
Jason Merrill
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* search.c (envelope_add_decl): Tweak for implicit typename.
From-SVN: r20264
parent
e37cda9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
gcc/cp/ChangeLog
+2
-0
gcc/cp/search.c
+7
-4
No files found.
gcc/cp/ChangeLog
View file @
3070ba0b
1998-06-05 Jason Merrill <jason@yorick.cygnus.com>
* search.c (envelope_add_decl): Tweak for implicit typename.
* call.c (joust): Also warn about confusing conversion op/constructor
overload resolution.
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/search.c
View file @
3070ba0b
...
...
@@ -3333,6 +3333,12 @@ envelope_add_decl (type, decl, values)
tree
name
=
DECL_NAME
(
decl
);
int
dont_add
=
0
;
/* Yet Another Implicit Typename Kludge: Since we don't tsubst
the members for partial instantiations, DECL_CONTEXT (decl) is wrong.
But pretend it's right for this function. */
if
(
processing_template_decl
)
type
=
DECL_REAL_CONTEXT
(
decl
);
/* virtual base names are always unique. */
if
(
VBASE_NAME_P
(
name
))
*
values
=
NULL_TREE
;
...
...
@@ -3354,10 +3360,7 @@ envelope_add_decl (type, decl, values)
warning
(
"in this context"
);
}
context
=
(
TREE_CODE
(
value
)
==
FUNCTION_DECL
&&
DECL_VIRTUAL_P
(
value
))
?
DECL_CLASS_CONTEXT
(
value
)
:
DECL_CONTEXT
(
value
);
context
=
DECL_REAL_CONTEXT
(
value
);
if
(
context
==
type
)
{
...
...
This diff is collapsed.
Click to expand it.
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