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
{{ message }}
Repository navigation
[BUG] Object alias lowers to copy-initialization #699
main.cpp2:2:36: error: no viable conversion from 'int' to 'const std::array<int, 1>'
2 | std::array<int,1> inline constexpr arr = (0);
| ^ ~~~
/opt/compiler-explorer/clang-trunk-20230923/bin/../include/c++/v1/array:164:29: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const array<int, 1> &' for 1st argument
164 | struct _LIBCPP_TEMPLATE_VIS array
| ^~~~~
/opt/compiler-explorer/clang-trunk-20230923/bin/../include/c++/v1/array:164:29: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'array<int, 1> &&' for 1st argument
164 | struct _LIBCPP_TEMPLATE_VIS array
| ^~~~~
1 error generated.
Activity
Enable declaring constexpr funcs/vars with `==`, improve `enum`/`flag…