Given this code snippet:
crtp
GCC is not reporting that the following lines are undefined behavior as mentioned in the cppreference page:
Base<D1> b1; b1.name();
Base<D2> b2; b2.name();
Given this code snippet:
crtp
GCC is not reporting that the following lines are undefined behavior as mentioned in the cppreference page:
Base<D1> b1; b1.name();
Base<D2> b2; b2.name();