https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109464
LIU Hao <lh_mouse at 126 dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.4.0, 9.5.0
--- Comment #4 from LIU Hao <lh_mouse at 126 dot com> ---
Manually reduced testcase:
(godbolt: https://gcc.godbolt.org/z/YsaoM78vM)
```
template<typename T>
struct shallow
{
int len;
constexpr shallow() : len(0) { }
};
template<typename T>
struct use_shallow
{
static constexpr shallow<T> s_zstr = { };
static_assert(s_zstr.len == 0);
};
extern template struct shallow<char>;
extern template struct use_shallow<char>;
template struct shallow<char>;
template struct use_shallow<char>;
```
Constructor of `shallow` is lost. All GCC versions are affected.