This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/62024] __atomic_always_lock_free is not a constant expression


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-08-13
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |4.10.0
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed even for C++.  The issue is the same: fold folds
__atomic_always_lock_free to 1, but that 1 is wrapped in NOP_EXPR - and static
assert code is unhappy.  I think we can just STRIP_TYPE_NOPS - we don't expect
an lvalue in the static assert code.  I'm testing a patch for that.

Not a regression.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]