repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend22.C
blob
41a73bbb4aeda02d7ef28abef304ddd4990cf417
1
// { dg-do compile }
2
3
// Origin: Benoit Hudson <bh@techhouse.brown.edu>
4
5
// PR c++/641: Duplicate friend diagnostics
6
7
template <class T> class iterator { };
8
template <class T> class item {
9
friend class iterator<T>;
10
friend class iterator<const T>;
11
};
12
13
class A { };
14
15
item<const A> i;