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++: constantness of call to function pointer [PR111703]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr88130.C
blob
911cf6c84c626540468f44880317e4233edc3025
1
/* { dg-do compile } */
2
/* { dg-options "-flto" } */
3
/* { dg-require-effective-target lto } */
4
class a {
5
public:
6
static const long b = 1;
7
};
8
struct c {
9
enum d { e };
10
};
11
class C;
12
class f {
13
public:
14
f(c::d);
15
template <typename g> C operator<=(g);
16
};
17
class C {
18
public:
19
template <typename h> void operator!=(h &);
20
};
21
void i() {
22
f j(c::e);
23
try {
24
j <= 0 != a::b;
25
} catch (...) {
26
}
27
}