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
2a2b1d56
Commit
2a2b1d56
authored
Nov 04, 2001
by
Kriang Lerdsuwanakij
Committed by
Kriang Lerdsuwanakij
Nov 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
From-SVN: r46772
parent
5f850402
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+1
-0
gcc/testsuite/g++.dg/ext/typeof1.C
+21
-0
No files found.
gcc/cp/ChangeLog
View file @
2a2b1d56
2001-11-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (tsubst_copy): Call tsubst for TYPEOF_EXPR.
2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lex.c (copy_lang_type): Add static prototype.
* lex.c (copy_lang_type): Add static prototype.
...
...
gcc/cp/pt.c
View file @
2a2b1d56
...
@@ -7174,6 +7174,7 @@ tsubst_copy (t, args, complain, in_decl)
...
@@ -7174,6 +7174,7 @@ tsubst_copy (t, args, complain, in_decl)
case
ARRAY_TYPE
:
case
ARRAY_TYPE
:
case
TYPENAME_TYPE
:
case
TYPENAME_TYPE
:
case
UNBOUND_CLASS_TEMPLATE
:
case
UNBOUND_CLASS_TEMPLATE
:
case
TYPEOF_TYPE
:
case
TYPE_DECL
:
case
TYPE_DECL
:
return
tsubst
(
t
,
args
,
complain
,
in_decl
);
return
tsubst
(
t
,
args
,
complain
,
in_decl
);
...
...
gcc/testsuite/g++.dg/ext/typeof1.C
0 → 100644
View file @
2a2b1d56
// Test typeof template argument substitution
// Copyright (C) 2001 Free Software Foundation
// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
// { dg-do compile }
// { dg-options "" }
template
<
class
T
>
struct
A
{
void
f
()
{}
void
g
(
T
*
t
)
{
A
<
typeof
(
t
)
>
a
;
a
.
f
();
}
};
int
main
()
{
A
<
int
>
a
;
int
b
;
a
.
g
(
&
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