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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |55004
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-12-04
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
ICC also rejects this code with the following error message:
<source>(7): note: pointer values cannot be compared because they do not point
into the same complete object or they point to subobjects with different
accessibility


Note MSVC "accepts" it (if you change < to <= so the static_assert is ok).


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues

Reply via email to