electronicarts/EASTL

GCC 11 compilation error - "template-id not allowed for destructor"

nebularnoise opened this issue · 2 comments

template <typename T, typename U = decltype(eastl::declval<eastl::destructible_test_helper<T> >().~destructible_test_helper<T>())>

Since the implementaiton of DR 2237 "disallow simple-template-id in cdtor", the line of code above is not longer valid, and throws the following compilation error:
error: template-id not allowed for destructor

I believe the fix is just to ommit the <T> after the dtor name.

This prevents compiling with gcc in C++20 mode fwiw.

Hello, thanks for the report. This should be fixed after #477.