public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/69205] Place a variadic template in front of function parameter when it is known
       [not found] <bug-69205-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-10  3:02 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-08-10  3:02 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note I think I might have reduced it too far.
Here is one which at least removes std::string usage:
#include <functional>
struct string1{};
using namespace std;
template<typename ActionType, typename... Cols>
void print_action(function<ActionType*(Cols..., ActionType)> action_factory)
{}
int main(int argc, char *argv[])
{
  print_action<string1, char>(function<string1*(char, string1)>());
  return 0;
}
------ CUT -----
This works on ICC, clang and MSVC.
Still fails on the trunk.

And this is a dup of bug 56190.

*** This bug has been marked as a duplicate of bug 56190 ***

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-10  3:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-69205-4@http.gcc.gnu.org/bugzilla/>
2021-08-10  3:02 ` [Bug c++/69205] Place a variadic template in front of function parameter when it is known pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).