[all-commits] [llvm/llvm-project] 3f7905: [Clang] Make passing incomplete types to builtin t...

cor3ntin via All-commits all-commits at lists.llvm.org
Mon Jan 6 05:49:11 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f7905733820851bc4f65cb4af693c3101cbf20d
      https://github.com/llvm/llvm-project/commit/3f7905733820851bc4f65cb4af693c3101cbf20d
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2025-01-06 (Mon, 06 Jan 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/test/SemaCXX/type-traits.cpp

  Log Message:
  -----------
  [Clang] Make passing incomplete types to builtin type-traits a non-sfinae-friendly error (#121333)

LWG3929 suggests that passing incomplete types to __is_base_of and other
builtins supporting [meta.unary] should result in a non-sfinaeable
error.

This is consistent with GCC's behavior and avoid inconsistency when
using a builtin instead of a standard trait in a concept-definition.

Fixes #121278



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list