[clang] [clang][Sema] decay functions to pointers for qualifier discarding and overflow behavior (PR #183616)

via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 05:01:08 PST 2026


================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s 
----------------
NeKon69 wrote:

There was a lot of cases where clang does not behave like gcc does (in terms of decaying). Now i am even more unsure whether this is a bug or not, so many tests rely on the fact that we expect type that isnt decayed... I probably shouldn't touch anything for now. I just don't see the line that we need to cross to diagnose original value instead of decayed type.

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


More information about the cfe-commits mailing list