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-ctor12.C
blob
42ca30a38ce10b11720312db3e6175e2c6136b93
1
// PR c++/55753
2
// { dg-do compile { target c++11 } }
3
4
template <typename Tp>
5
struct C {
6
C() = default;
7
constexpr C(const Tp& r) { }
8
};
9
10
template <typename Tp>
11
struct B {
12
B() {
13
C<double> cpl = C<double>((true ? 1.0 : C<double>()));
14
}
15
};