[Bug c++/94922] Functional cast from base class to derived class incorrectly accepted with -std=c++2a

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat May 2 13:00:46 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94922

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Another testcase that exhibits the 10/11 regression:

struct base {};
struct derived : base {};

void
foo()
{
  derived a = derived(base());
}


More information about the Gcc-bugs mailing list