[Bug c++/69205] Place a variadic template in front of function parameter when it is known
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #5 from Andrew Pinski --- Note I think I might have reduced it too far. Here is one which at least removes std::string usage: #include struct string1{}; using namespace std; template void print_action(function action_factory) {} int main(int argc, char *argv[]) { print_action(function()); 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 ***
[Bug c++/69205] Place a variadic template in front of function parameter when it is known
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 --- Comment #4 from mohsen --- This bug tagged rejects-valid, although, Andrew Pinski has told that he did not know variadic templates well. After that I do not know I must wait still to get a certain answer about that or it really accepted and it will be fixed in the future versions. This bug is a part of my code so I must be sure that whether it is true or not. I were waiting for more comments about that but it seems an unactive bug.
[Bug c++/69205] Place a variadic template in front of function parameter when it is known
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Known to fail||6.0 --- Comment #2 from Andrew Pinski --- Here is a short testcase without any use of includes: struct string{}; template class function; template class function<_Res(_ArgTypes...)>{}; template void print_action(functionaction_factory) {} int main(int argc, char *argv[]) { function t; print_action (t); print_action(t); return 0; } --- CUT --- I don't know variadic templates that well to know enough so I can't comment one way or another.
[Bug c++/69205] Place a variadic template in front of function parameter when it is known
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 --- Comment #3 from Andrew Pinski --- Note the trunk has a different error message: t.cc: In function ‘int main(int, char**)’: t.cc:12:30: error: no matching function for call to ‘print_action(function&)’ print_action (t); ^ t.cc:6:6: note: candidate: template void print_action(function ) void print_action(function action_factory) ^~~~ t.cc:6:6: note: template argument deduction/substitution failed: t.cc:12:30: note: mismatched types ‘string’ and ‘int’ print_action (t); ^ t.cc:13:17: error: no matching function for call to ‘print_action(function &)’ print_action(t); ^ t.cc:6:6: note: candidate: template void print_action(function ) void print_action(function action_factory) ^~~~ t.cc:6:6: note: template argument deduction/substitution failed: t.cc:13:17: note: deduced conflicting types for parameter ‘ActionType’ (‘string’ and ‘int’) print_action(t); ^
[Bug c++/69205] Place a variadic template in front of function parameter when it is known
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 --- Comment #1 from mohsen --- I reported this bug one week ago but I did not get any feedback about this. I am not familiar about procedures of answering a bug. Please take me any suggestion about this bug or at least the minimum time that may take for a bug until it is inspected. Thanks in advance.
[Bug c++/69205] Place a variadic template in front of function parameter when it is known
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 Jonathan Wakely changed: What|Removed |Added Severity|major |normal