================
@@ -137,23 +137,74 @@ constexpr auto int a1 = 0; // c23-error {{illegal storage 
class on file-scoped v
                               c17-error {{illegal storage class on file-scoped 
variable}} \
                               c17-error {{unknown type name 'constexpr'}}
 
-constexpr int auto a2 = 0; // c23-error {{cannot combine with previous 'int' 
declaration specifier}} \
+constexpr int auto a2 = 0; // c23-error {{cannot combine with previous 'auto' 
declaration specifier}} \
----------------
AaronBallman wrote:

The "cannot combine" diagnostic here is harder to understand because there's no 
"previous" auto specifier.

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

Reply via email to