Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;