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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr8570.C
blob
4c34c6c336c7ea770d83060657f624fd6a553e59
1
// PR c++/8570
2
// { dg-do compile }
3
// { dg-options "" }
4
template <typename T, typename P>
5
class X { // { dg-message "note: previous declaration .* used 2" }
6
public:
7
X() { }
8
9
private:
10
template <typename U> friend class X; // { dg-error "redeclared with 1 template parameter" }
11
};
12
13
X<int, int> i; // { dg-message "required" }