repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template6.C
blob
eac6004aeb35ac67be0c41d0d93f073adddb2e9d
1
// PR c++/59268
2
// { dg-do compile }
3
// { dg-options "-std=c++11" }
4
5
template <typename>
6
struct A
7
{
8
constexpr A (int) {}
9
virtual void foo ()
10
{
11
constexpr A<void> a (0);
12
}
13
};
14
15
void
16
bar ()
17
{
18
A<int> a (3);
19
a.foo ();
20
}