[Mesa-dev] [Bug 107439] mesa defines likely/unlikely and these are C++20 keywords

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 1 10:50:10 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107439

--- Comment #1 from Gustaw Smolarczyk <wielkiegie at gmail.com> ---
Are these really reserved keywords? I thought the attribute namespace was
different from the keyword namespace.

These are not listed as keywords, even for C++20:

https://en.cppreference.com/w/cpp/keyword

You should be able to define variables called "likely", for example.

https://wandbox.org/permlink/hFczuKlzyOjFjvkA

Using the [[likely]] syntax while having likely() defined as a macro might be a
problem though, but that is a separate issue.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180801/1a9f3e68/attachment.html>


More information about the mesa-dev mailing list