Issue 126979
Summary Fatal error: intrin0.h yvals_core.h - RC1021: invalid preprocessor command 'include_next'
Labels
Assignees
Reporter ianalexis
    After upgrading VS2022 my project change from 18.1.1 to 19.1.1 LLVM CLANG compiler.
This causes `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\lib\clang\19\include\yvals_core.h(11): fatal error RC1021: invalid preprocessor command 'include_next'`
I do not understand what is this file and what does but if i comment the line (11) everything works fine.
```c++
//===----- yvals_core.h - Internal MSVC STL core header -------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// Only include this if we are aiming for MSVC compatibility.
#ifndef _MSC_VER
//#include_next <yvals_core.h>
#else

#ifndef __clang_yvals_core_h
#define __clang_yvals_core_h

#include_next <yvals_core.h>

#ifdef _STL_INTRIN_HEADER
#undef _STL_INTRIN_HEADER
#define _STL_INTRIN_HEADER <intrin0.h>
#endif

#endif
#endif
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to