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
adae082f
Commit
adae082f
authored
Jun 27, 2000
by
Mark Mitchell
Committed by
Mark Mitchell
Jun 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grokfndecl): Set DECL_CONTEXT for static functions too.
From-SVN: r34742
parent
49199692
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+1
-1
gcc/testsuite/g++.old-deja/g++.ns/ns19.C
+7
-0
No files found.
gcc/cp/ChangeLog
View file @
adae082f
2000-06-27 Mark Mitchell <mark@codesourcery.com>
* decl.c (grokfndecl): Set DECL_CONTEXT for static functions too.
2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
2000-06-26 Nathan Sidwell <nathan@codesourcery.com>
* search.c (hides): Remove.
* search.c (hides): Remove.
...
...
gcc/cp/decl.c
View file @
adae082f
...
@@ -8862,7 +8862,7 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
...
@@ -8862,7 +8862,7 @@ grokfndecl (ctype, type, declarator, orig_declarator, virtualp, flags, quals,
/* If this decl has namespace scope, set that up. */
/* If this decl has namespace scope, set that up. */
if
(
in_namespace
)
if
(
in_namespace
)
set_decl_namespace
(
decl
,
in_namespace
,
friendp
);
set_decl_namespace
(
decl
,
in_namespace
,
friendp
);
else
if
(
publicp
&&
!
ctype
)
else
if
(
!
ctype
)
DECL_CONTEXT
(
decl
)
=
FROB_CONTEXT
(
current_namespace
);
DECL_CONTEXT
(
decl
)
=
FROB_CONTEXT
(
current_namespace
);
/* `main' and builtins have implicit 'C' linkage. */
/* `main' and builtins have implicit 'C' linkage. */
...
...
gcc/testsuite/g++.old-deja/g++.ns/ns19.C
0 → 100644
View file @
adae082f
// Build don't link:
// Origin: Chip Salzenberg <chip@valinux.com>
namespace
N
{
enum
{
E
=
0
};
static
int
f
()
{
return
E
;
}
}
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