[clang] [clang] fix parsing typeid with pack index (PR #94299)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 3 19:29:39 PDT 2024
================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -std=c++2c -fsyntax-only -verify %s
+// expected-no-diagnostics
+
+namespace std {
+struct type_info {
+ const char *name;
+};
+} // namespace std
+
+namespace GH93650_bug {
+auto func(auto... inputArgs) { return typeid(inputArgs...[0]); }
+} // namespace GH93650_bug
----------------
c8ef wrote:
Thank you for your prompt response! I have moved the test as you suggested.
https://github.com/llvm/llvm-project/pull/94299
More information about the cfe-commits
mailing list