================
@@ -107,12 +107,11 @@ void test_misc(void) {
   auto something;                           // expected-error {{declaration of 
variable 'something' with deduced type 'auto' requires an initializer}}
   auto test_char = 'A';
   auto test_char_ptr = "test";
-  auto test_char_ptr2[] = "another test";   // expected-warning {{type 
inference of a declaration other than a plain identifier with optional trailing 
attributes is a Clang extension}}
+  auto test_char_ptr2[] = "another test";   // expected-error {{variable 
'test_char_ptr2' with type 'auto[]' has incompatible initializer of type 
'char[13]'}}
----------------
AaronBallman wrote:

I'm a bit surprised by the diagnostic text, I would have expected one of these 
two diagnostics, not a third form about incompatible types: 
https://godbolt.org/z/735sh16E5

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

Reply via email to