[Bug c++/48324] [C++0x] constexpr evaluation should respect lifetime rules

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 20 16:58:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48324

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I suppose we can close this as fixed: we warn about returning a reference to a
temporary at line 9 and then we error out at line 12 about the size not being
an integral constant expression. Likewise clang.

Jason, shall I add the testcase and close the bug?



More information about the Gcc-bugs mailing list