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
3af4c87c
Commit
3af4c87c
authored
Aug 04, 2000
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
From-SVN: r35499
parent
baf7e33b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
gcc/testsuite/g++.old-deja/g++.pt/friend44.C
+44
-0
gcc/testsuite/g++.old-deja/g++.pt/overload13.C
+12
-0
No files found.
gcc/testsuite/g++.old-deja/g++.pt/friend44.C
0 → 100644
View file @
3af4c87c
// Test that template friends referring to class template members are
// respected.
// excess errors test - XFAIL *-*-*
template
<
class
T
>
struct
A
{
int
f
(
T
);
struct
AI
{
int
f
(
T
);
};
};
class
B
{
template
<
class
T
>
friend
int
A
<
T
>::
f
(
T
);
template
<
class
T
>
friend
struct
A
<
T
>::
AI
;
int
a
;
public
:
B
()
:
a
(
0
)
{
}
};
template
<
class
T
>
int
A
<
T
>::
f
(
T
)
{
B
b
;
return
b
.
a
;
}
template
<
class
T
>
int
A
<
T
>::
AI
::
f
(
T
)
{
B
b
;
return
b
.
a
;
}
int
main
()
{
A
<
int
>
a
;
A
<
int
>::
AI
ai
;
int
r
=
a
.
f
(
0
);
r
|=
ai
.
f
(
0
);
return
r
;
}
gcc/testsuite/g++.old-deja/g++.pt/overload13.C
0 → 100644
View file @
3af4c87c
// Test that .template limits overload resolution to member templates.
struct
A
{
template
<
class
T
>
int
f
(
T
)
{
return
0
;
}
int
f
(
int
)
{
return
1
;
}
};
int
main
()
{
A
a
;
return
a
.
template
f
(
0
);
// gets bogus error XFAIL *-*-*
}
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