Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
fd31098434d7933a0471183f342473d1fb02389d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype49.C
blob: c3174982f82ca8748ad7e91f99f7566d269da230 [
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
;