Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype26.C
blob: 58ba823aca047fbd3e164595d7a118dfa1da8576 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
};
template
<
class
T
>
decltype
(
f
(
T
()))
f
(
T t
)
// { dg-error "depth" }
{
return
f
(
t
);
}
int
main
()
{
f
(
A
());
// { dg-message "from here" }
}
// { dg-prune-output "compilation terminated" }