Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 1 year ago

Language

C++

Compiler

clang HEAD 20.0.0git (https://github.com/llvm/llvm-project.git 723dec66f0a74888bb05862a543b0d7e7f96e1de)

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

Author

anonymous

about 1 year ago

$ clang++ prog.cc -Wall -Wextra -std=gnu++2b -pedantic
prog.cc:27:23: warning: temporary whose address is used as value of local variable 'sp2' will be destroyed at the end of the full-expression [-Wdangling]
   27 |     StringPiece2 sp2{ MakeString() }; // Warning occurs
      |                       ^~~~~~~~~~~~
1 warning generated.
sp1: +KU<|�r�s;�waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
sp2: +KU<|�r�s;�waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Exit Code:
0