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
6b945830
Commit
6b945830
authored
Jul 17, 1998
by
Jason Merrill
Committed by
Jason Merrill
Jul 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (qualify_lookup): Tweak again.
From-SVN: r21266
parent
c3baf4b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl.c
+8
-6
No files found.
gcc/cp/ChangeLog
View file @
6b945830
1998-07-17 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (qualify_lookup): Tweak again.
* pt.c (lookup_template_class): Don't mess with the context of the
instantiation.
* decl2.c (current_decl_namespace): Remove special handling for
...
...
gcc/cp/decl.c
View file @
6b945830
...
...
@@ -4880,12 +4880,14 @@ qualify_lookup (val, flags)
{
if
(
val
==
NULL_TREE
)
return
val
;
if
(
LOOKUP_NAMESPACES_ONLY
(
flags
)
&&
TREE_CODE
(
val
)
!=
NAMESPACE_DECL
)
return
NULL_TREE
;
if
(
LOOKUP_TYPES_ONLY
(
flags
)
&&
TREE_CODE
(
val
)
!=
TYPE_DECL
&&
!
((
flags
&
LOOKUP_TEMPLATES_EXPECTED
)
&&
TREE_CODE
(
val
)
==
TEMPLATE_DECL
&&
DECL_CLASS_TEMPLATE_P
(
val
)))
if
((
flags
&
LOOKUP_PREFER_NAMESPACES
)
&&
TREE_CODE
(
val
)
==
NAMESPACE_DECL
)
return
val
;
if
((
flags
&
LOOKUP_PREFER_TYPES
)
&&
(
TREE_CODE
(
val
)
==
TYPE_DECL
||
((
flags
&
LOOKUP_TEMPLATES_EXPECTED
)
&&
DECL_CLASS_TEMPLATE_P
(
val
))))
return
val
;
if
(
flags
&
(
LOOKUP_PREFER_NAMESPACES
|
LOOKUP_PREFER_TYPES
))
return
NULL_TREE
;
return
val
;
}
...
...
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