Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
using55.C
blob: 61098b186fb37907a7b29094c81f57007c0841b7 [
file
] [
log
] [
blame
]
// PR c++/65721
template
<
typename
T
>
struct
A
{
typedef
T D
;
};
template
<
typename
X
>
class
B
:
public
A
<
X
>
{
using
typename
B
::
D
;
// { dg-error "not a base" }
public
:
D echo
(
D x
)
{
// { dg-error "D" }
return
x
;
}
};
int
main
()
{
B
<int>
b
;
}