This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61182] [4.9/4.10 Regression] Forming pointer to qualified function type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 May 2014 10:55:51 +0000
- Subject: [Bug c++/61182] [4.9/4.10 Regression] Forming pointer to qualified function type
- Auto-submitted: auto-generated
- References: <bug-61182-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61182
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to pdaouadi from comment #3)
> Still, if the standard says that it is not allowed we can work around it,
> but then should I file a bug to clang?
And Boost. I have to wonder why their remove_const is so much more complicated
than ours:
template<typename _Tp>
struct remove_const
{ typedef _Tp type; };
template<typename _Tp>
struct remove_const<_Tp const>
{ typedef _Tp type; };
That doesn't need to form a pointer then remove it again, so works with
function types.