[Bug c++/98360] sizeof in template difference between g++/icc and clang++

ensadc at mailnesia dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 19 01:35:56 GMT 2020


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

--- Comment #2 from ensadc at mailnesia dot com ---
Apparently clang++ rewrites `uintset::values` in question to
`this->uintset::values`, because it believes that `uintset::values` is valid
only if someone specializes `uintset<foo>::traits` to make it inherit from
`uintset<foo>`, but clang++ seems to fail at realizing that `uintset::values`
appears in an unevaluated operand.


More information about the Gcc-bugs mailing list