-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I first ran the git clone --recursive https://github.com/modern-cmake/cppfront command.
Then cmake -S cppfront -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=installed.
And then cmake --build build --target install
I then opened example folder. I first run cmake -G Ninja -S .. -B build/cppfront -DCMAKE_BUILD_TYPE=Release from inside of the example folder. I then run cmake --build build/cppfront and I get the errors:
$ cmake -G Ninja -S .. -B build/cppfront -DCMAKE_BUILD_TYPE=Release
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/Kulagin/Projects/Tests/cppfront/ex
ample/build/cppfront
Kulagin@DESKTOP-839K1SS MINGW64 ~/Projects/Tests/cppfront/example (main)
$ cmake --build build/cppfront
[2/3] Building CXX object CMakeFiles/c...nt.dir/cppfront/source/cppfront.cpp.ob
FAILED: [code=1] CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o
bj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -IC:/Users/Kulagin/Projects/Tests/cppfront/cp
pfront/source -O3 -DNDEBUG -std=gnu++20 -D_DLL -D_MT -Xclang --dependent-lib=msv
crt -MD -MT CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.obj -M
F CMakeFiles\cppfront_cppfront.dir\cppfront\source\cppfront.cpp.obj.d @CMakeFile
s\cppfront_cppfront.dir\cppfront\source\cppfront.cpp.obj.modmap -o CMakeFiles/cp
pfront_cppfront.dir/cppfront/source/cppfront.cpp.obj -c C:/Users/Kulagin/Project
s/Tests/cppfront/cppfront/source/cppfront.cpp
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source/c
ppfront.cpp:18:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\t
o_cpp1.h:21:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\s
ema.h:21:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\r
eflect.h:9:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\c
pp2util.h:1:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\.
./include/cpp2util.h:3469:
cpp2regex.h2:65:29: error: constexpr constructor never produces a constant expre
ssion [-Winvalid-constexpr]
65 | constexpr expression_flags::expression_flags()
| ^~~~~~~~~~~~~~~~
cpp2regex.h2:66:51: note: read of non-constexpr variable 'none' is not allowed i
n a constant expression
66 | : _value{ none._value }{}
| ^
cpp2regex.h2:62:58: note: declared here
62 | inline CPP2_CONSTEXPR expression_flags expression_flags::none{ 0 };
| ^
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source/c
ppfront.cpp:18:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\t
o_cpp1.h:21:
In file included from C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\s
ema.h:21:
reflect.h2:1469:27: warning: variable 'name' is uninitialized when used within i
ts own initialization [-Wuninitialized]
1469 | std::string name {CPP2_UFCS(name)(m)};
| ~~~~ ^~~~~~~~~~~~~~~
C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\../include/cpp2util.h:2
132:70: note: expanded from macro 'CPP2_UFCS'
2132 | #define CPP2_UFCS(...) CPP2_UFCS_(&,C
PP2_UFCS_EMPTY,CPP2_UFCS_IDENTITY,(),,__VA_ARGS__)
| ^
C:/Users/Kulagin/Projects/Tests/cppfront/cppfront/source\../include/cpp2util.h:2
100:2: note: expanded from macro 'CPP2_UFCS_'
2100 | [LAMBDADEFCAPT]< \
| ^~~~~~~~~~~~~
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.
Kulagin@DESKTOP-839K1SS MINGW64 ~/Projects/Tests/cppfront/example (main)
$
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels