☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ73.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/var-templ73.C
code
plain
raw
1
// PR c++/107938
2
// { dg-do compile { target c++14 } }
3
4
struct Q {
5
int n;
6
constexpr const Q* operator()(int) const { return this; }
7
};
8
9
constexpr Q q{};
10
11
template<int>
12
constexpr const Q* p = q(0);