[Bug c++/102045] constructor is not being instantiated

2021-08-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102045 --- Comment #3 from Jonathan Wakely --- Reduced: template struct span { template constexpr span(T ()[N]) : data(a), len(N) { } constexpr bool empty() const { return len == 0; } T* data; unsigned long len; }; struct byte_writer:

[Bug c++/102045] constructor is not being instantiated

2021-08-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102045 --- Comment #2 from Jonathan Wakely --- (In reply to Hana Dusíková from comment #0) > #include > > struct byte_writer: std::span { > using std::span::span; N.B. this line should be commented out to reproduce the problem.

[Bug c++/102045] constructor is not being instantiated

2021-08-24 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102045 Marek Polacek changed: What|Removed |Added CC||jason at gcc dot gnu.org,