[Bug c++/62285] const reference binding to temporary when using -fPIC

2014-08-27 Thread rpzatkoff at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62285 --- Comment #3 from Roger Zatkoff --- (In reply to Jonathan Wakely from comment #2) > There's some discussion of a similar case in PR 61769 Okay, thank you!

[Bug c++/62285] New: const reference binding to temporary when using -fPIC

2014-08-27 Thread rpzatkoff at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rpzatkoff at gmail dot com I found an issue with a simple program when using a const reference in C++. I have compiled this with various versions of g++ with different flags and get different results in many of them