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
e1b81ca4
Commit
e1b81ca4
authored
Sep 15, 1998
by
Alexandre Oliva
Committed by
Alexandre Oliva
Sep 15, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (build_field_call): handle static data members too
From-SVN: r22433
parent
bb210aaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
gcc/cp/ChangeLog
+2
-0
gcc/cp/call.c
+3
-2
No files found.
gcc/cp/ChangeLog
View file @
e1b81ca4
1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
* call.c (build_field_call): handle static data members too
* typeck.c (comptypes): when comparing pointer types, check
whether referred types match even in strictest modes
...
...
gcc/cp/call.c
View file @
e1b81ca4
...
...
@@ -136,7 +136,7 @@ build_field_call (basetype_path, instance_ptr, name, parms)
return
error_mark_node
;
}
if
(
TREE_CODE
(
field
)
==
FIELD_DECL
)
if
(
TREE_CODE
(
field
)
==
FIELD_DECL
||
TREE_CODE
(
field
)
==
VAR_DECL
)
{
/* If it's a field, try overloading operator (),
or calling if the field is a pointer-to-function. */
...
...
@@ -167,7 +167,8 @@ build_field_call (basetype_path, instance_ptr, name, parms)
if
(
field
==
error_mark_node
)
return
error_mark_node
;
if
(
field
&&
TREE_CODE
(
field
)
==
FIELD_DECL
)
if
(
field
&&
(
TREE_CODE
(
field
)
==
FIELD_DECL
||
TREE_CODE
(
field
)
==
VAR_DECL
))
{
tree
basetype
;
tree
ftype
=
TREE_TYPE
(
field
);
...
...
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