This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71382] New: Unary plus doesn't works with pointers to instantiations of function templates
- From: "roman.perepelitsa at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Jun 2016 10:45:10 +0000
- Subject: [Bug c++/71382] New: Unary plus doesn't works with pointers to instantiations of function templates
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71382
Bug ID: 71382
Summary: Unary plus doesn't works with pointers to
instantiations of function templates
Product: gcc
Version: 5.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: roman.perepelitsa at gmail dot com
Target Milestone: ---
This compiles:
void F();
void G() { +(&F); }
This doesn't:
template <class T> void F();
void G() { +(&F<void>); }
error: wrong type argument to unary plus
Expected behaviour: both examples compile.