[PATCH] D130894: [clang] Print more information about failed static assertions

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 3 07:29:38 PDT 2022


tbaeder added a comment.

FWIW, complex numbers are already covered it seems:

  test.cpp:35:1: error: static assertion failed due to requirement '__real c == __imag c'
  static_assert(__real c == __imag c);
  ^             ~~~~~~~~~~~~~~~~~~~~
  test.cpp:35:24: note: expression evaluates to 5 == 6
  static_assert(__real c == __imag c);
                ~~~~~~~~~^~~~~~~~~~~
  1 error generated.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130894/new/

https://reviews.llvm.org/D130894



More information about the cfe-commits mailing list