Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 2 years ago

Language

C++

Compiler

gcc HEAD 14.0.0 20230624 (experimental)

Options
Warnings
Don't Use Boost
C++2b(GNU)
no pedantic

Author

anonymous

almost 2 years ago

$ g++ prog.cc -Wall -Wextra -std=gnu++2b
prog.cc: In substitution of 'template<class T, long unsigned int N> using array_t = T [with T = unsigned int; long unsigned int N = 3]':
prog.cc:12:39:   required from here
prog.cc:5:7: error: 'vector_size' attribute argument value 'std::bit_ceil<long unsigned int>((3 * sizeof (unsigned int)))' is not an integer constant
    5 | using array_t __attribute__ ((vector_size(std::bit_ceil(N * sizeof(T))))) = T;
      |       ^~~~~~~
Exit Code:
1