Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

2 days ago

Language

C++

Compiler

gcc HEAD 16.0.0 20250423 (experimental)

Options
Warnings
Don't Use Boost
C++2b
-pedantic

Author

anonymous

2 days ago

gsl-lite/gsl-lite.hpp

$ g++ prog.cc -Wall -Wextra -std=c++2b -pedantic
1: [1, 2, 3, 4, 5]
2: [1, 2, 3, 4, 5, 6]
3: [1, 2, 3, 4, 5, 6, 7]
4: [1, 2, 3]
5: [1, 2, 3, 4, 5, 0, 1775943168]
6: [1, 2, 3]
7: [3, 4, 5]
8: [2, 3, 4, 5]
9: [2, 3, 4]
prog.exe: gsl-lite/gsl-lite.hpp:4657: constexpr gsl_lite::span<T, 18446744073709551615> gsl_lite::span<T, Extent>::make_subspan(size_type, size_type, subspan_selector<18446744073709551615>) const [with T = int; long unsigned int Extent = 18446744073709551615; size_type = long unsigned int]: Assertion `"gsl-lite: Precondition failure" && ( static_cast<std::size_t>( size() ) - static_cast<std::size_t>( offset ) >= static_cast<std::size_t>( count ) )' failed.
Exit Code:
134