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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template6.C
blob
fd0c957b0a3c3d4b0e1deb33763d3ee10ee36c65
1
// PR c++/59268
2
// { dg-do compile { target c++11 } }
3
4
template <typename>
5
struct A
6
{
7
constexpr A (int) {}
8
virtual void foo ()
9
{
10
constexpr A<void> a (0);
11
}
12
};
13
14
void
15
bar ()
16
{
17
A<int> a (3);
18
a.foo ();
19
}