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