Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C++

Compiler

gcc HEAD 13.0.1 20230302 (experimental)

Options
Warnings
Don't Use Boost
C++2b(GNU)
no pedantic

Author

anonymous

over 2 years ago

$ g++ prog.cc -Wall -Wextra -std=gnu++2b
prog.cc: In function 'int main()':
prog.cc:7:17: warning: possibly dangling reference to a temporary [-Wdangling-reference]
    7 |     auto const& v = std::get<0>(std::tuple<int&>(i));
      |                 ^
prog.cc:7:32: note: the temporary was destroyed at the end of the full expression 'std::get<0, int&>(std::tuple<int&>(i))'
    7 |     auto const& v = std::get<0>(std::tuple<int&>(i));
      |                     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
0x7ffe60d8d81c
0x7ffe60d8d81c
Exit Code:
0