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
/
decltype71.C
blob
24c3abfba49ba1b63807275f79ad136961344bc5
1
// PR c++/68918
2
// { dg-do compile { target c++11 } }
3
4
struct foo {
5
static void a() {}
6
7
auto b() const -> decltype( this->a() )
8
{}
9
10
template<typename X>
11
auto c() -> decltype( this->a() )
12
{}
13
14
template<typename X>
15
auto d() const -> decltype( a() )
16
{}
17
18
template<typename X>
19
auto e() const -> decltype( this->a() )
20
{}
21
};
22
23
int main()
24
{
25
}