[all-commits] [llvm/llvm-project] 9c561e: [clang] Add test for CWG1397

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Tue May 30 02:09:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c561e8f3c2e8292bce9d7b36657144ba26a1c91
      https://github.com/llvm/llvm-project/commit/9c561e8f3c2e8292bce9d7b36657144ba26a1c91
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/test/CXX/drs/dr13xx.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [clang] Add test for CWG1397

Resolution of this CWG breaks potential dependency loop between complete-class context of non-static data member initializer (NSDMI), and defaulted default constructor, which is `noexcept` depending on NSDMIs among other things.

For whatever reason in C++11 mode we issue an additional note and a different line number for the primary error. But I find the message itself even worse than aforementioned issues. It describes what's going on, but doesn't say what's bad about it. I find the previous version of this message more clear: https://github.com/llvm/llvm-project/commit/8dbc6b26171167b8ddf66a5f4b6d6fb9baf28336 . Created an issue for that: #62823

Reviewed By: #clang-language-wg, shafik

Differential Revision: https://reviews.llvm.org/D151034




More information about the All-commits mailing list