Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype49.C
blob: d0a37823d4b2dd8aa90ccf222cc56491fa2d697a [
file
] [
log
] [
blame
]
// PR c++/45282
// { dg-require-effective-target c++11 }
struct
A
{
int
i
;
};
int
A
::*
ipm
=
&
A
::
i
;
template
<
class
T
,
class
U
>
class
assert_same_type
;
template
<
class
T
>
class
assert_same_type
<
T
,
T
>
{
};
assert_same_type
<
decltype
(
A
().*
ipm
),
int
&&>
x2
;