[Bug c++/79648] error on x in constant expression when __builtin_constant_p(x) == true

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 29 15:23:00 GMT 2017


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-08-29
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed that gcc only errors on g in C++ mode. In C mode, though, it errors
on both functions for me with optimization. Also, it's weird that in C++ mode,
the caret points to the 0 instead of the x.


More information about the Gcc-bugs mailing list