public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/84893] Rejects a valid code with variadic function template taking a function pointer
[not found] <bug-84893-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-27 7:04 ` pinskia at gcc dot gnu.org
2021-07-27 7:06 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27 7:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84893
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-07-27
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> EDG accepts it but Clang doesn't:
>
> 84893.cc:7:5: error: no matching function for call to 'f'
> f<bool>(g);
> ^~~~~~~
> 84893.cc:2:6: note: candidate template ignored: failed template argument
> deduction
> void f(void(*)(T..., int)) { }
> ^
> 1 error generated.
clang started to accept it in clang 7.
Confirmed.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/84893] Rejects a valid code with variadic function template taking a function pointer
[not found] <bug-84893-4@http.gcc.gnu.org/bugzilla/>
2021-07-27 7:04 ` [Bug c++/84893] Rejects a valid code with variadic function template taking a function pointer pinskia at gcc dot gnu.org
@ 2021-07-27 7:06 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27 7:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84893
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 56190.
*** This bug has been marked as a duplicate of bug 56190 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-27 7:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-84893-4@http.gcc.gnu.org/bugzilla/>
2021-07-27 7:04 ` [Bug c++/84893] Rejects a valid code with variadic function template taking a function pointer pinskia at gcc dot gnu.org
2021-07-27 7:06 ` 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).