You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.cpp2:2:24: error: use of class template 't' requires template arguments
2 | inline constexpr int t::v = 0;
| ^
build/main.cpp:13:28: note: template is declared here
13 | template<typename T> class t {
| ~~~~~~~~~~~~~~~~~~~~ ^
1 error generated.
The text was updated successfully, but these errors were encountered:
Title: Missing template-head in static data member definition.
Minimal reproducer (https://cpp2.godbolt.org/z/M6fr97sTY):
Commands:
cppfront main.cpp2 clang++17 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -I . main.cpp
Expected result:
Actual result and error:
Cpp2 lowered to Cpp1:
The text was updated successfully, but these errors were encountered: