[PATCH][C++] Fix PR67333

Mikhail Maltsev maltsevm@gmail.com
Thu Aug 27 18:35:00 GMT 2015


Hi.
This patch fixes a rejects-valid bug related to volatile-qualified arguments of
constexpr functions. This is essentially a one-line change in constexpr.c.
Bootstrapped and regtested on x86_64-pc-linux-gnu. OK for trunk?

gcc/cp/ChangeLog:

2015-08-25  Mikhail Maltsev  <maltsevm@gmail.com>

        PR c++/67333
        * constexpr.c (potential_constant_expression_1): Do not reject
        volatile-qualified values, if there is no lvalue-to-rvalue conversion.

gcc/testsuite/ChangeLog:

2015-08-25  Mikhail Maltsev  <maltsevm@gmail.com>

        PR c++/67333
        * g++.dg/cpp0x/constexpr-67333.C: New test.
        * g++.dg/cpp1y/constexpr-67333.C: New test.

-- 
Regards,
    Mikhail Maltsev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr67333.patch
Type: text/x-patch
Size: 1991 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150827/a1d9a9ca/attachment.bin>


More information about the Gcc-patches mailing list