Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning/Error on test bind_to_const_ref_sharedptr_via_placeholder #558

Open
yuriv opened this issue Jan 31, 2024 · 0 comments
Open

Warning/Error on test bind_to_const_ref_sharedptr_via_placeholder #558

yuriv opened this issue Jan 31, 2024 · 0 comments

Comments

@yuriv
Copy link

yuriv commented Jan 31, 2024

Expected Behavior

5

Actual Behavior

stop compiling on error .../di/include/boost/di.hpp:2464:41: error: returning reference to temporary [-Werror=return-local-addr] or Program terminated with signal: SIGSEGV on compile-time warning

Steps to Reproduce the Problem

  1. Go to https://godbolt.org/z/8asef5Ead
  2. Compile and run

Specifications

  • Version: last
  • Platform: linux (Rocky 8.x) or godbolt
  • Subsystem: gcc 8.5...13.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant