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
/
ref-qual16.C
blob
1d7650bb61bad24ab5d1e52e525a7b32602308fa
1
// PR c++/64297
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
typedef int X;
6
template <int> X m_fn1() const;
7
};
8
template <typename> struct is_function {};
9
is_function<int() const &> i;
10
struct D {
11
template <typename Y, typename = is_function<Y>> D(Y);
12
} b(&A::m_fn1<0>);