[Bug c++/87709] c++17 class template argument deduction not working in a very specific case

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 23 15:53:00 GMT 2018


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops, I missed the first line of the diagnostic. The error from trunk is:


ctad.cc:11:12: error: missing template arguments after 'lit'
11 | auto r2 = (lit(0)) + lit(0);
   |            ^~~
ctad.cc:2:8: note: 'template<class T> struct lit' declared here
2 | struct lit {
  |        ^~~


More information about the Gcc-bugs mailing list