================
@@ -62,6 +62,8 @@ auto basic_usage(auto auto) {   // c23-error {{'auto' not 
allowed in function pr
 
   int auto_cxx_decl = auto(0);  // expected-error {{expected expression}}
 
+  constexpr auto int x = 0; // c23-error {{cannot combine with previous 'auto' 
declaration specifier}} \
----------------
AaronBallman wrote:

I think it's defensible as-is; WG14 is slowly moving `auto` to be a type 
specifier instead of a storage class specifier 
(https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3579.htm) so we may want to 
revisit this later.

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

Reply via email to