re PR c++/55425 (constexpr does not work in many situations (both built-in and user...
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 19 Nov 2014 17:40:42 +0000 (17:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 19 Nov 2014 17:40:42 +0000 (17:40 +0000)
commit0162cb3bb7832f02c355503a04c3d443035bdda4
treef2a5402e5f4c1077a8868f4c5bd65c707e2fc376
parent538dd0b78f4b3998a1719a282811cb0caa1b035a
re PR c++/55425 (constexpr does not work in many situations  (both built-in and user supplied literals))

/cp
2014-11-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55425
* constexpr.c (constexpr_fn_retval): Accept __func__, __FUNCTION__,
and __PRETTY_FUNCTION__.

/testsuite
2014-11-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/55425
* g++.dg/cpp0x/constexpr-__func__.C

From-SVN: r217788
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-__func__.C [new file with mode: 0644]