projects
/
platform
/
upstream
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR middle-end/15988 (ICE in fold_convert with pointer-to-member-function)
[platform/upstream/gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
ptrmem4.C
1
// { dg-do run }
2
// { dg-options "-O3" }
3
4
struct X { void foo (); };
5
6
template <typename>
7
inline void spawn (void (X::*fun_ptr)()) {}
8
9
void bar () {
10
void (X::*const comp)() = &X::foo;
11
spawn<int> (comp);
12
}