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
4f8025eb
Commit
4f8025eb
authored
Sep 01, 2000
by
Nathan Sidwell
Committed by
Nathan Sidwell
Sep 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (build_scoped_method_call): Check it is not a namespace.
From-SVN: r36094
parent
0479a462
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+5
-0
No files found.
gcc/cp/ChangeLog
View file @
4f8025eb
2000-09-01 Nathan Sidwell <nathan@codesourcery.com>
* call.c (build_scoped_method_call): Check it is not a namespace.
2000-08-30 Jason Merrill <jason@redhat.com>
2000-08-30 Jason Merrill <jason@redhat.com>
* cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
* cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
...
...
gcc/cp/call.c
View file @
4f8025eb
...
@@ -275,6 +275,11 @@ build_scoped_method_call (exp, basetype, name, parms)
...
@@ -275,6 +275,11 @@ build_scoped_method_call (exp, basetype, name, parms)
}
}
}
}
if
(
TREE_CODE
(
basetype
)
==
NAMESPACE_DECL
)
{
cp_error
(
"`%D' is a namespace"
,
basetype
);
return
error_mark_node
;
}
if
(
!
is_aggr_type
(
basetype
,
1
))
if
(
!
is_aggr_type
(
basetype
,
1
))
return
error_mark_node
;
return
error_mark_node
;
...
...
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