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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
We never call duplicate_decls -> validate_constexpr_redeclaration because
decls_match doesn't look at decl-specifiers like constexpr/consteval.

        for (ovl_iterator iter (binding); iter; ++iter)
          if (decls_match (decl, *iter, /*record_versions*/false))
            {    
              alias = *iter;
              break;
            }

so they're just aliases.

Reply via email to