https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101867
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to cqwrteur from comment #8) > But it is not documented. It is: https://gcc.gnu.org/install/configure.html#avr > > in the /src/c++11/system_error.cc > > #ifdef __AVR__ > return std::error_condition(ev, std::system_category()); > #else > switch (ev) > { > > #endif > > i feel this switch is pointless. Why do you feel that? Have you read [syserr.errcat.objects] p4? How do you think your suggestion for __AVR__ conforms to that requirement? > https://github.com/vancegroup-mirrors/avr-libc/blob/master/avr-libc/include/ > errno.h > > If you look at the errno.h here, it is pretty bad. I don't know what you're saying here. > I think this switch should just be removed. How would you implement the requirement then?