From 244ee7b89a483fd3764637abdf95de2893b437d0 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sun, 15 Jan 2012 03:51:30 +0000 Subject: Pedantic diagnostic correction: in C++, we have integral constant expressions, not integer constant expressions. In passing, fix the 'folding is an extension' diagnostic to not claim we're accepting the code, since that's not true in -pedantic-errors mode, and add this diagnostic to -Wgnu. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148209 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaCXX/enum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/SemaCXX/enum.cpp') diff --git a/test/SemaCXX/enum.cpp b/test/SemaCXX/enum.cpp index b4a050cb09..370e1c34d2 100644 --- a/test/SemaCXX/enum.cpp +++ b/test/SemaCXX/enum.cpp @@ -88,7 +88,7 @@ typedef enum { }; // expected-warning{{typedef requires a name}} // PR7921 enum PR7921E { - PR7921V = (PR7921E)(123) // expected-error {{expression is not an integer constant expression}} + PR7921V = (PR7921E)(123) // expected-error {{expression is not an integral constant expression}} }; void PR8089() { -- cgit v1.2.1