https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93470
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED Target Milestone|--- |9.3 Summary|[C++2a] |[9/10 Regression] [C++2a] |std::reference_wrapper to |std::reference_wrapper to |function type is broken |function type is broken | |with Clang --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to frankhb1989 from comment #2) > Sorry, I missed to mention it only failed with `clang++ -std=c++2a` If you're going to claim something is broken please don't forget the most critical piece of information. Bugzilla reminds you to read https://gcc.gnu.org/bugs/ before creating every bug, please be sure to do that, and provide the requested information. > Clang++ 9.0.1). G++ with `-std=c++2a` still accepts the code. However, it > seems that Clang++ is correct here. GCC accepts it as an extension, which is also correct. You get a diagnostic with -Wsystem-headers, but not by default.