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
/
trailing13.C
blob
2681bcd3f530f8bbb8a32c99daf043d36ac529e1
1
// PR c++/69139
2
// { dg-do compile { target c++11 } }
3
4
struct X {
5
auto get(int) const & noexcept -> int { return {}; }
6
auto get(int) && throw () -> long { return {}; }
7
};
8
9
template <class R> auto f(auto (X::*)(int) const & -> R) -> R {}
10
11
using I = decltype(f(&X::get));
12
using I = int;