Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
call6.C
blob: b79d624a484f28feb24e8bb59c8357f51b367036 [
file
] [
log
] [
blame
]
// PR c++/38577
// { dg-do compile }
struct
A
{
static
A
*
bar
();
};
struct
B
:
public
A
{
static
void
baz
();
};
template
<
class
T
>
void
foo
()
{
(
static_cast
<
B
*>
(
A
::
bar
()))->
baz
();
}
void
bar
()
{
foo
<int>
();
}