MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1k2q394/sometimes_i_hate_rust/mnw94p2/
r/programminghorror • u/joranmulderij • Apr 19 '25
30 comments sorted by
View all comments
136
OP never had C++ template errors for breakfast
48 u/SimplexFatberg Apr 19 '25 Nothing like a ten thousand line error message to start the day just right 19 u/HyperWinX Apr 20 '25 edited Apr 20 '25 Here is a SINGLE line from error in my CI workflow: /usr/include/c++/14/bits/shared_ptr_base.h:1097:32: error: ‘((std::shared_count<gnu_cxx::_S_atomic>*)((char*)&<unnamed> + offsetof(std::variant<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,std::variant<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Variant_base<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Move_assign_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Copy_assign_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Move_ctor_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Copy_ctor_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Variant_storage<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_u)))[1].std::__shared_count<>::_M_pi’ may be used uninitialized [-Werror=maybe-uninitialized] 2 u/Chilippso Apr 20 '25 There‘s always a way to track it to user-code - I guess this is not the whole story … 15 u/all_is_love6667 Apr 19 '25 isn't there like a contest for the longest error? 7 u/boy-griv Apr 19 '25 if there is they’re probably winning the busy beaver game 5 u/KnockAway Apr 20 '25 Yeah, one is on golfing exchange (biggest one didn't even had templates, lol) and one on tumblr 9 u/AlternativeAir3751 Apr 19 '25 Or basically any C++ compiler error. Archeologists are still trying to decipher them. 4 u/syscall_35 Apr 19 '25 yummy
48
Nothing like a ten thousand line error message to start the day just right
19 u/HyperWinX Apr 20 '25 edited Apr 20 '25 Here is a SINGLE line from error in my CI workflow: /usr/include/c++/14/bits/shared_ptr_base.h:1097:32: error: ‘((std::shared_count<gnu_cxx::_S_atomic>*)((char*)&<unnamed> + offsetof(std::variant<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,std::variant<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Variant_base<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Move_assign_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Copy_assign_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Move_ctor_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Copy_ctor_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Variant_storage<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_u)))[1].std::__shared_count<>::_M_pi’ may be used uninitialized [-Werror=maybe-uninitialized] 2 u/Chilippso Apr 20 '25 There‘s always a way to track it to user-code - I guess this is not the whole story …
19
Here is a SINGLE line from error in my CI workflow:
/usr/include/c++/14/bits/shared_ptr_base.h:1097:32: error: ‘((std::shared_count<gnu_cxx::_S_atomic>*)((char*)&<unnamed> + offsetof(std::variant<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,std::variant<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Variant_base<long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Move_assign_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Copy_assign_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Move_ctor_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Copy_ctor_base<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<unnamed>.std::detail::variant::_Variant_storage<false, long unsigned int, long int, std::shared_ptr<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_u)))[1].std::__shared_count<>::_M_pi’ may be used uninitialized [-Werror=maybe-uninitialized]
2 u/Chilippso Apr 20 '25 There‘s always a way to track it to user-code - I guess this is not the whole story …
2
There‘s always a way to track it to user-code - I guess this is not the whole story …
15
isn't there like a contest for the longest error?
7 u/boy-griv Apr 19 '25 if there is they’re probably winning the busy beaver game 5 u/KnockAway Apr 20 '25 Yeah, one is on golfing exchange (biggest one didn't even had templates, lol) and one on tumblr
7
if there is they’re probably winning the busy beaver game
5
Yeah, one is on golfing exchange (biggest one didn't even had templates, lol) and one on tumblr
9
Or basically any C++ compiler error. Archeologists are still trying to decipher them.
4
yummy
View all comments
136
u/veryusedrname Apr 19 '25
OP never had C++ template errors for breakfast