repo.or.cz
/
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: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wdangling-reference12.C
blob
85e01f01a506e982383fbc254eb6dae5151cb52c
1
// PR c++/107532
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wdangling-reference" }
4
5
#include <tuple>
6
7
int main()
8
{
9
int i = 42;
10
auto const& v = std::get<0>(std::tuple<int&>(i)); // { dg-bogus "dangling reference" }
11
(void) v;
12
}