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
/
diagnostic
/
using1.C
blob
4090dd24a60775e8300eedc3d8120b6906c7f693
1
// PR c++/102987
2
// { dg-do compile { target c++11 } }
3
4
struct a {
5
bool b();
6
};
7
template <typename c> struct d : c {
8
using c::e;
9
using f = d;
10
// { dg-message "decltype .c::e" "" { target *-*-* } 0 }
11
constexpr int g(decltype(e.b())) { return buh; } // { dg-error "buh" }
12
};
13
struct h {
14
a e;
15
};
16
using i = d<h>;
17
auto j = i{}.g(1);