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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr79457.C
blob
937e0e00726d0d05d2da2db7d15f9431f9212089
1
// PR c++/79457
2
// { dg-do compile { target c++11 } }
3
4
template <typename T>
5
class Foo
6
{
7
private:
8
T& goo;
9
template <typename R>
10
using S = decltype (goo[R ()]);
11
12
public:
13
Foo (T& goo) : goo {goo} {}
14
15
template <typename R>
16
S<R> boo () {}
17
};
18
19
int
20
main ()
21
{
22
int bar[] = {1, 2, 3};
23
Foo<decltype (bar)> foo {bar};
24
}