Issue 175387
Summary [bug][clang][21.1.8] Incorrect compiler warning for the simplest code.
Labels clang
Assignees
Reporter yaoxinliu
    ```
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"

consteval int g() {
    return 1;
}

#pragma clang diagnostic pop // WARNING: Pragma diagnostic pop could not pop, no matching push. clang (-Wunknown-pragmas)
```

The code above is simple and correct; however, a warning of `-Wunknown-pragmas` is incorrectly triggered.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to