repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted3.C
blob
33de973a1faaead9fb724c0c58e1dc36cc4c0b93
1
// PR c++/37006
2
// { dg-do compile { target c++11 } }
3
4
template<class T>
5
struct A {
6
template<class U>
7
bool operator==(const A<U>&) const = delete; // { dg-message "declared" }
8
operator bool () { return true; }
9
};
10
11
int main()
12
{
13
A<int> a1;
14
A<void> a2;
15
if(a1 == a2) {} // { dg-error "use" }
16
}