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
fccef71e
Commit
fccef71e
authored
Nov 02, 2001
by
Kriang Lerdsuwanakij
Committed by
Kriang Lerdsuwanakij
Nov 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (unify): Handle SCOPE_REF.
From-SVN: r46715
parent
ae31824c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+1
-0
gcc/testsuite/g++.dg/template/unify3.C
+11
-0
No files found.
gcc/cp/ChangeLog
View file @
fccef71e
2001-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (unify): Handle SCOPE_REF.
2001-11-01 Jakub Jelinek <jakub@redhat.com>
* tree.c (cp_copy_res_decl_for_inlining): Adjust
...
...
gcc/cp/pt.c
View file @
fccef71e
...
...
@@ -8566,6 +8566,7 @@ unify (tparms, targs, parm, arg, strict)
switch
(
TREE_CODE
(
parm
))
{
case
TYPENAME_TYPE
:
case
SCOPE_REF
:
case
UNBOUND_CLASS_TEMPLATE
:
/* In a type which contains a nested-name-specifier, template
argument values cannot be deduced for template parameters used
...
...
gcc/testsuite/g++.dg/template/unify3.C
0 → 100644
View file @
fccef71e
// Test unifying SCOPE_REF.
// Origin: Marc Duflot <m.duflot@ulg.ac.be>
// { dg-do compile }
template
<
int
n
>
class
A
{};
template
<
int
m
>
class
R
{};
template
<
int
n
>
struct
Trait
{
enum
{
m
=
n
};
};
template
<
int
n
>
R
<
Trait
<
n
>::
m
>
f
(
A
<
n
>
);
template
<>
R
<
1
>
f
(
A
<
1
>
)
{
return
R
<
1
>
();}
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