Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }