This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61182] Forming pointer to qualified function type
- From: "jason 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 03:12:38 +0000
- Subject: [Bug c++/61182] 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 #5 from Jason Merrill <jason at gcc dot gnu.org> ---
8.3.5/6 says,
A function type with a cv-qualifier-seq or a ref-qualifier ... shall appear
only as:
â the function type for a non-static member function,
â the function type to which a pointer to member refers,
â the top-level function type of a function typedef declaration or
alias-declaration,
â the type-id in the default argument of a type-parameter (14.1), or
â the type-id of a template-argument for a type-parameter (14.3.1).
Which I read as meaning no (non-member) pointers to such a type.