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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype30.C
blob
25eeb9d295844df074be617001789a540cb41ae0
1
// PR c++/49369
2
// { dg-do compile { target c++11 } }
3
4
template <class,class> struct assert_same;
5
template <class T> struct assert_same<T,T> {};
6
7
struct B {
8
int member;
9
};
10
11
struct C: B {
12
void method() const;
13
};
14
15
void C::method() const {
16
assert_same<decltype((B::member)), const int&> a;
17
}