Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr69637-2.C
blob: c6523932972f0a16a66fb5de3cfe7b87bae51df8 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
class
T
,
int
N
>
constexpr
int
foo
()
{
return
N
;
}
struct
B
{
unsigned
c
:
foo
<int>
,
3
();
};
// { dg-error "non-integral type|expected" }