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
155d38c0
Commit
155d38c0
authored
Aug 11, 1999
by
Martin v. Loewis
Committed by
Martin v. Löwis
Aug 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lex.c (do_identifier): Remove unnecessary lookup of class field.
From-SVN: r28671
parent
94304469
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
28 deletions
+4
-28
gcc/cp/ChangeLog
+4
-0
gcc/cp/lex.c
+0
-28
No files found.
gcc/cp/ChangeLog
View file @
155d38c0
1999-08-10 Martin v. Loewis <martin@mira.isdn.cs.tu-berlin.de>
* lex.c (do_identifier): Remove unnecessary lookup of class field.
1999-08-09 Martin v. Loewis <martin@mira.isdn.cs.tu-berlin.de>
* decl2.c (set_decl_namespace): Do not complain about non-matching
...
...
gcc/cp/lex.c
View file @
155d38c0
...
...
@@ -3091,34 +3091,6 @@ do_identifier (token, parsing, args)
else
id
=
lastiddecl
;
/* Scope class declarations before global
declarations. */
if
((
!
id
||
is_global
(
id
))
&&
current_class_type
!=
0
&&
TYPE_SIZE
(
current_class_type
)
==
0
)
{
/* Could be from one of the base classes. */
tree
field
=
lookup_field
(
current_class_type
,
token
,
1
,
0
);
if
(
field
==
0
)
;
else
if
(
field
==
error_mark_node
)
/* We have already generated the error message.
But we still want to return this value. */
id
=
lookup_field
(
current_class_type
,
token
,
0
,
0
);
else
if
(
TREE_CODE
(
field
)
==
VAR_DECL
||
TREE_CODE
(
field
)
==
CONST_DECL
||
TREE_CODE
(
field
)
==
TEMPLATE_DECL
)
id
=
field
;
else
if
(
TREE_CODE
(
field
)
!=
FIELD_DECL
)
my_friendly_abort
(
61
);
else
{
cp_error
(
"invalid use of member `%D'"
,
field
);
id
=
error_mark_node
;
return
id
;
}
}
/* Do Koenig lookup if appropriate (inside templates we build lookup
expressions instead). */
if
(
args
&&
!
current_template_parms
&&
(
!
id
||
is_global
(
id
)))
...
...
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