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
24c65984
Commit
24c65984
authored
Oct 29, 1998
by
Jason Merrill
Committed by
Jason Merrill
Oct 29, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (lookup_name_real): Simplify suggested fix.
From-SVN: r23439
parent
d7b3753c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
gcc/cp/ChangeLog
+1
-0
gcc/cp/decl.c
+4
-10
No files found.
gcc/cp/ChangeLog
View file @
24c65984
1998-10-29 Jason Merrill <jason@yorick.cygnus.com>
1998-10-29 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (lookup_name_real): OK, only warn if not lexing.
* decl.c (lookup_name_real): OK, only warn if not lexing.
Simplify suggested fix.
* cp-tree.h (IDENTIFIER_MARKED): New macro.
* cp-tree.h (IDENTIFIER_MARKED): New macro.
* search.c (lookup_conversions): Use breadth_first_search.
* search.c (lookup_conversions): Use breadth_first_search.
...
...
gcc/cp/decl.c
View file @
24c65984
...
@@ -5243,17 +5243,11 @@ lookup_name_real (name, prefer_type, nonclass, namespaces_only)
...
@@ -5243,17 +5243,11 @@ lookup_name_real (name, prefer_type, nonclass, namespaces_only)
&&
!
(
TREE_CODE
(
locval
)
==
TYPE_DECL
&&
!
(
TREE_CODE
(
locval
)
==
TYPE_DECL
&&
comptypes
(
TREE_TYPE
(
locval
),
subtype
,
1
)))
&&
comptypes
(
TREE_TYPE
(
locval
),
subtype
,
1
)))
{
{
static
int
explained
;
cp_warning
(
"lookup of `%D' finds `%#D'"
,
name
,
locval
);
cp_warning
(
"lookup of `%D' finds `%#D'"
,
name
,
locval
);
cp_warning
cp_warning
(
" instead of `%D' from dependent base class"
,
(
" instead of `%D' from dependent base class"
,
classval
);
classval
);
if
(
!
explained
)
cp_warning
(
" (use `typename %T::%D' if that's what you meant)"
,
{
constructor_name
(
current_class_type
),
name
);
explained
=
1
;
cp_warning
(
" (use `typename %D' if that's what you meant)"
,
classval
);
}
}
}
}
}
}
}
...
...
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