[PATCH] c++/66561 - __builtin_LINE at al. should yield constant expressions

Martin Sebor msebor@gmail.com
Tue Apr 26 23:59:00 GMT 2016


PR c++/66639 asked to declare __func__ , __FUNCTION__ and
__PRETTY_FUNCTION__ as constexpr​.  With the request fulfilled
sometime in the 6.0 time frame (possibly as a result of fixing
c++/70353), the attached patch implements the corresponding
change suggested in c++/66561 - __builtin_LINE at al. should
yield constant expression, and updates the manual to reflect
both.  It has been tested on x86_64 Linux.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-66561.patch
Type: text/x-patch
Size: 15955 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160426/ea66ec5e/attachment.bin>


More information about the Gcc-patches mailing list