================
@@ -1450,3 +1450,9 @@ namespace GH149500 {
   unsigned int * p = &(*(unsigned int *)0x400);
   static const void *q = &(*(const struct sysrq_key_op *)0);
 }
+
+constexpr bool missingCase() {
+  switch (1) {
+    1u: return false; // expected-error {{expected 'case' keyword before 
expression}}
----------------
AaronBallman wrote:

I'm a bit confused; we already emit this diagnostic today without your changes: 
https://godbolt.org/z/4379s9zGf

You mention this is about getting the usual conversions to happen, but those 
only need to happen for well-formed code, right?

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

Reply via email to