Describe the bug
error: declaration of variable 'y' with deduced type 'auto' requires an initializer
extern auto y;
^
To Reproduce
Steps to reproduce the behavior:
- Sample code - distilled down to minimal essentials please
- Command lines including which C++ compiler you are using
~/root/bin/cppfront x.cpp2
~/root/clang/bin/clang++ -std=c++20 -I $CPPFRONT_INCLUDE_DIR x.cpp
-
Expected result - what you expected to happen
To generate working code, if possible. Perhaps by replacing auto with decltype(initializing expression).
-
Actual result/error
x.cpp2:1:13: error: declaration of variable 'y' with deduced type 'auto' requires an initializer
extern auto y;
^
1 error generated.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
y := 0;Expected result - what you expected to happen
To generate working code, if possible. Perhaps by replacing
autowithdecltype(initializing expression).Actual result/error