repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fortran/openmp.cc: Fix var init and locus use to avoid uninit values [PR fortran...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn24.C
blob
e9bbc735b4da77f06751c4261491e3ad502d90a2
1
// PR c++/60314
2
// { dg-do compile { target c++14 } }
3
// { dg-options "-g" }
4
5
// fine
6
decltype(auto) qux() { return 42; }
7
8
struct foo
9
{
10
// also ICEs if not static
11
static decltype(auto) bar()
12
{ return 42; }
13
};