Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
error3.C
blob: 75390f0bf2b1e87f763bf5b57cb7f30a52ca252c [
file
] [
log
] [
blame
]
// PR c++/47336
// { dg-do compile { target c++11 } }
template
<
typename
T
>
void
g
(
T t
)
{
t
+
1
;
// { dg-error "no match" }
}
template
<
typename
S
>
class
C
{
struct
D
{}
d
;
public
:
decltype
(
g
(
d
))
h
()
{
return
g
(
d
);
}
};
int
main
()
{
C
<int>
().
h
();
}