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
cf38f48a
Commit
cf38f48a
authored
Mar 25, 1999
by
Mark Mitchell
Committed by
Mark Mitchell
Mar 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (tsubst_decl): Tsubst into DECL_BEFRIENDING_CLASSES.
From-SVN: r25982
parent
4e8d7ddc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+12
-0
gcc/testsuite/g++.old-deja/g++.pt/friend40.C
+11
-0
No files found.
gcc/cp/ChangeLog
View file @
cf38f48a
1999-03-25 Mark Mitchell <mark@codesourcery.com>
* pt.c (tsubst_decl): Tsubst into DECL_BEFRIENDING_CLASSES.
1999-03-25 Nathan Sidwell <nathan@acm.org>
* decl.c (init_decl_processing): Add `signed' type as a synonym
...
...
gcc/cp/pt.c
View file @
cf38f48a
...
...
@@ -5470,6 +5470,7 @@ tsubst_decl (t, args, type, in_decl)
{
tree
ctx
;
tree
argvec
=
NULL_TREE
;
tree
*
friends
;
tree
gen_tmpl
;
int
member
;
int
args_depth
;
...
...
@@ -5669,6 +5670,17 @@ tsubst_decl (t, args, type, in_decl)
SET_IDENTIFIER_GLOBAL_VALUE
(
DECL_ASSEMBLER_NAME
(
r
),
r
);
}
/* Copy the list of befriending classes. */
for
(
friends
=
&
DECL_BEFRIENDING_CLASSES
(
r
);
*
friends
;
friends
=
&
TREE_CHAIN
(
*
friends
))
{
*
friends
=
copy_node
(
*
friends
);
TREE_VALUE
(
*
friends
)
=
tsubst
(
TREE_VALUE
(
*
friends
),
args
,
/*complain=*/
1
,
in_decl
);
}
if
(
DECL_CONSTRUCTOR_P
(
r
))
{
maybe_retrofit_in_chrg
(
r
);
...
...
gcc/testsuite/g++.old-deja/g++.pt/friend40.C
0 → 100644
View file @
cf38f48a
// Build don't link:
// Origin: Jason Merrill <jason@cygnus.com>
template
<
class
T
>
struct
A
{
friend
void
f
();
};
A
<
short
>
a
;
A
<
int
>
b
;
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