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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
noexcept36.C
blob
980a28cd207584d09a078713c38ca34dd5936ba7
1
// PR c++/89571
2
// { dg-do compile { target c++11 } }
3
4
struct z8 {
5
constexpr static int qq /* = 0 */; // { dg-error "initializer" }
6
};
7
8
template<typename T>
9
struct kf {
10
kf (const kf &) noexcept (T::qq); // { dg-error "constant" }
11
};
12
13
struct lk {
14
kf<z8> e1;
15
};
16
17
template<typename T>
18
T &sc ();
19
20
struct b6 {
21
decltype (lk (sc<lk> ())) zz;
22
};