This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50785] [C++0x][constexpr] static constexpr double undefined reference


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50785

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-19 12:43:59 UTC ---
test::value is an lvalue, binding a reference to it is an odr-use

(1*test::value) produces an rvalue, the reference is not bound to test::value,
so it is not odr-used


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]