[clang] fix bug that undefined internal is a warning only for -pedantic-errors (PR #98016)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 05:06:54 PDT 2024


================
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c23 -pedantic-errors
+
+// expected-no-diagnostics
+
+static int f(void);
+
+int main(void)
+{
+    typeof(f()) x;
----------------
AaronBallman wrote:

```suggestion
    typeof(&f) x;
```

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


More information about the cfe-commits mailing list