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
c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-conv4.C
blob
f4e3f00a585bd90c2808f8513edc89d5b984ada9
1
// PR c++/87145
2
// { dg-do compile { target c++11 } }
3
4
struct S {
5
int val;
6
7
constexpr operator int() const {
8
return static_cast<int>(val);
9
}
10
};
11
12
template<int N>
13
struct F { };
14
15
template<unsigned N>
16
constexpr void foo() {
17
F<int{N}> f;
18
F<S{N}> f2;
19
}
20
21
int
22
main()
23
{
24
foo<2>();
25
}