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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alias-decl-31.C
blob
83eea471d07cc73e643b0826c7acbc66213bee1f
1
// Origin: PR c++/55663
2
// { dg-do compile { target c++11 } }
3
4
template <typename>
5
constexpr bool the_truth () { return true; }
6
7
template <bool>
8
struct Takes_bool { };
9
10
template<bool B>
11
using Alias = Takes_bool<B>;
12
13
template<typename T>
14
struct test { using type = Alias<the_truth<T>()>; };
15
16
int main () {
17
test<int> a;
18
19
return 0;
20
}