1 // PR c++/60314
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-g" }
4 
5 // fine
qux()6 decltype(auto) qux() { return 42; }
7 
8 struct foo
9 {
10   // also ICEs if not static
barfoo11   static decltype(auto) bar()
12   { return 42; }
13 };
14