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
de96bf57
Commit
de96bf57
authored
Nov 29, 1999
by
Mark Mitchell
Committed by
Mark Mitchell
Nov 29, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (tsubst_decl): Robustify.
From-SVN: r30716
parent
f9011d04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+1
-1
gcc/testsuite/g++.old-deja/g++.pt/extern1.C
+13
-0
No files found.
gcc/cp/ChangeLog
View file @
de96bf57
1999-11-29 Mark Mitchell <mark@codesourcery.com>
* pt.c (tsubst_decl): Robustify.
1999-11-27 Mark Mitchell <mark@codesourcery.com>
* decl2.c (finish_file): Call expand_body for inline functions
...
...
gcc/cp/pt.c
View file @
de96bf57
...
...
@@ -5863,7 +5863,7 @@ tsubst_decl (t, args, type, in_decl)
my_friendly_assert
(
DECL_LANG_SPECIFIC
(
t
)
&&
DECL_TEMPLATE_INFO
(
t
)
!=
NULL_TREE
,
0
);
if
(
TYPE_P
(
DECL_CONTEXT
(
t
)))
if
(
TYPE_P
(
CP_
DECL_CONTEXT
(
t
)))
ctx
=
tsubst_aggr_type
(
DECL_CONTEXT
(
t
),
args
,
/*complain=*/
1
,
in_decl
,
/*entering_scope=*/
1
);
...
...
gcc/testsuite/g++.old-deja/g++.pt/extern1.C
0 → 100644
View file @
de96bf57
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
template
<
class
T
>
void
f
()
{
extern
int
i
;
extern
T
j
;
i
=
j
;
}
template
void
f
<
int
>
();
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