[clang] [clang] CTAD: fix the aggregate deduction guide for alias templates. (PR #90894)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 02:14:10 PDT 2024


================
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -std=c++2a -verify -ast-dump -ast-dump-decl-types -ast-dump-filter "deduction guide" %s | FileCheck %s --strict-whitespace
+// RUN: %clang_cc1 -std=c++2a -verify -ast-dump -ast-dump-decl-types -Wno-c++11-narrowing -ast-dump-filter "deduction guide" %s | FileCheck %s --strict-whitespace
----------------
hokein wrote:

Oh, yeah, this was to suppress the narrowing double=>int conversion warning on `BG bg = {1.0};`. I have changed the way to init the `bg` to get rid of this warning.

https://github.com/llvm/llvm-project/pull/90894


More information about the cfe-commits mailing list