Index: clang/include/clang/Basic/Specifiers.h =================================================================== --- clang/include/clang/Basic/Specifiers.h +++ clang/include/clang/Basic/Specifiers.h @@ -46,10 +46,7 @@ TSS_unsigned }; - enum TypeSpecifiersPipe { - TSP_unspecified, - TSP_pipe - }; + enum class TypeSpecifiersPipe { Unspecified, Pipe }; /// Specifies the kind of type. enum TypeSpecifierType { Index: clang/lib/Sema/DeclSpec.cpp =================================================================== --- clang/lib/Sema/DeclSpec.cpp +++ clang/lib/Sema/DeclSpec.cpp @@ -877,7 +877,7 @@ } if (isPipe) { - TypeSpecPipe = TSP_pipe; + TypeSpecPipe = static_cast(TypeSpecifiersPipe::Pipe); } return false; }