================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only %s -verify
+namespace a {
+template <class b>
+void c() {
+  ((::c::)); // expected-error {{expected unqualified-id}}
----------------
efriedma-quic wrote:

This looks like we aren't actually diagnosing the error?  I'd expect something 
like `error: 'c' is not a class, namespace, or enumeration`, which is what we 
generate in the non-template case.

What happens if you instead write the following?

```
  ((::c::x));
```

https://github.com/llvm/llvm-project/pull/166995
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to