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
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-eq8.C
blob
61bcde55d1c1e0af54b76758723146a63c100ef9
1
// PR c++/92966
2
// { dg-do compile { target c++20 } }
3
4
struct S {
5
int operator==(const S&) const = default; // { dg-error "must return 'bool'" }
6
int s; // { dg-message "declared here" "" { target *-*-* } .-1 }
7
};
8
static_assert(S{} == S{}); // { dg-error "" }