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