================
@@ -39,7 +39,9 @@ constexpr auto Ulong = 1L;
constexpr auto CompoundLiteral = (int){13};
constexpr auto DoubleCast = (double)(1 / 3);
constexpr auto String = "this is a string"; // both-error {{constexpr pointer
initializer is not null}}
-constexpr signed auto Long = 1L; // both-error {{'auto' cannot be signed or
unsigned}}
+// both-error@+2 {{cannot combine with previous 'auto' declaration specifier}}
+// both-error@+1 {{illegal storage class on file-scoped variable}}
----------------
AaronBallman wrote:
The "cannot combine" diagnostic is unfortunate because what is the "previous"
auto declaration specifier? I think the original diagnostic behavior was a bit
better, though the "illegal storage class on file-scoped variable" is
reasonable to emit as well.
https://github.com/llvm/llvm-project/pull/177865
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits