[Bug libstdc++/94353] New: std::copy* breaks when one type is volatile

2020-03-27 Thread alex at grundis dot de
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: alex at grundis dot de Target Milestone: --- The following code breaks: #include void foo(const char* b, volatile char* d){ std::copy_n(b, 10, d); } This is a regression from earlier versions where

[Bug c++/90080] New: SFINAE failure with static_cast

2019-04-13 Thread alex at grundis dot de
++ Assignee: unassigned at gcc dot gnu.org Reporter: alex at grundis dot de Target Milestone: --- Using `std::enable_if` with a trait checking for `static_castable` fails hard instead of SFINAE and usage of the alternative signature. Code (https://godbolt.org/z/2uJc3P): template struct