[Bug c++/95514] constexpr dynamic memory allocation compile error with inheritance and the this pointer

pkeir at outlook dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 3 20:10:36 GMT 2020


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

--- Comment #1 from Paul Keir <pkeir at outlook dot com> ---
The code above should also include:

int main(int argc, char *argv[])
{
  static_assert(test1());
//  test1(); // no problem

  return 0;
}


More information about the Gcc-bugs mailing list