https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108550
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |5.2.0 Target Milestone|--- |10.5 Summary|the type 'const auto' of |[10/11/12/13 Regression] |'constexpr' variable is not |the type 'const auto' of |literal |'constexpr' variable is not | |literal Known to fail| |5.3.0 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also is_pointer_v needs to be an auto type. If you change it to bool things start working.