Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template6.C
blob: fd0c957b0a3c3d4b0e1deb33763d3ee10ee36c65 [
file
] [
log
] [
blame
]
// PR c++/59268
// { dg-do compile { target c++11 } }
template
<typename>
struct
A
{
constexpr
A
(
int
)
{}
virtual
void
foo
()
{
constexpr
A
<void>
a
(
0
);
}
};
void
bar
()
{
A
<int>
a
(
3
);
a
.
foo
();
}