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
[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bitfield4.C
blob
2b1d1fee945b59578fd21a67eea13fd8986c348a
1
// PR c++/30274
2
// { dg-do link }
3
4
struct S {
5
bool x : 4;
6
};
7
8
S s;
9
10
template <typename T>
11
void f(T);
12
13
template <>
14
void f(bool) {}
15
16
int main() {
17
f(s.x++); // { dg-warning "deprecated" "" { target { ! c++17 } } }
18
// { dg-error "forbidden" "" { target c++17 } .-1 }
19
f(++s.x); // { dg-warning "deprecated" "" { target { ! c++17 } } }
20
// { dg-error "forbidden" "" { target c++17 } .-1 }
21
}