https://github.com/MitalAshok edited
https://github.com/llvm/llvm-project/pull/78112
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78112
>From 92f8720e3d21521b589d5291f086a2f32b87bfe0 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sun, 14 Jan 2024 19:52:31 +
Subject: [PATCH 1/3] [clang] [SemaCXX] Implement CWG2627 Bit-fields and
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78112
>From 92f8720e3d21521b589d5291f086a2f32b87bfe0 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sun, 14 Jan 2024 19:52:31 +
Subject: [PATCH 1/3] [clang] [SemaCXX] Implement CWG2627 Bit-fields and
cor3ntin wrote:
Given that this is a core issue resolution, i think it should be applied in all
language modes without warning, even under pedantics. This is compounding by
the fact that MSVC never warned (gcc warns in all language modes - they don't
seem to implement the DR yet)
(unless we
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78112
>From 92f8720e3d21521b589d5291f086a2f32b87bfe0 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sun, 14 Jan 2024 19:52:31 +
Subject: [PATCH 1/2] [clang] [SemaCXX] Implement CWG2627 Bit-fields and
https://github.com/MitalAshok edited
https://github.com/llvm/llvm-project/pull/78112
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78112
>From 92f8720e3d21521b589d5291f086a2f32b87bfe0 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sun, 14 Jan 2024 19:52:31 +
Subject: [PATCH] [clang] [SemaCXX] Implement CWG2627 Bit-fields and narrowing
MitalAshok wrote:
New version gives a pedantic warning if this is used before C++23 (and it is a
substitution failure before C++23)
https://github.com/llvm/llvm-project/pull/78112
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78112
>From 92f8720e3d21521b589d5291f086a2f32b87bfe0 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sun, 14 Jan 2024 19:52:31 +
Subject: [PATCH] [clang] [SemaCXX] Implement CWG2627 Bit-fields and narrowing
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78112
>From 12307d487a956896f283aebf73cdb9b95587d068 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Sun, 14 Jan 2024 19:52:31 +
Subject: [PATCH] [clang] [SemaCXX] Implement CWG2627 Bit-fields and narrowing
@@ -433,61 +433,86 @@ NarrowingKind
StandardConversionSequence::getNarrowingKind(
// -- from an integer type or unscoped enumeration type to an integer type
//that cannot represent all the values of the original type, except where
- //the source is a constant
frederick-vs-ja wrote:
> Should this be a SFINAE-able error before C++23? (It isn't currently)
I believe this should (in C++11 and later modes).
https://github.com/llvm/llvm-project/pull/78112
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Mital Ashok (MitalAshok)
Changes
[CWG2627](https://wg21.link/CWG2627)
I've implemented this to apply to C++11 to 20 as well without a warning. Should
this be a SFINAE-able error before C++23? (It isn't currently)
---
Full diff:
https://github.com/MitalAshok created
https://github.com/llvm/llvm-project/pull/78112
[CWG2627](https://wg21.link/CWG2627)
I've implemented this to apply to C++11 to 20 as well without a warning. Should
this be a SFINAE-able error before C++23? (It isn't currently)
>From
14 matches
Mail list logo