https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61182
Bug ID: 61182 Summary: Forming pointer to qualified function type Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pdaou...@aldebaran-robotics.com Created attachment 32793 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32793&action=edit Minimal test The attached code does not compile on gcc 4.9 but compiles on clang 3.4 and gcc < 4.9. Accessor decompose the type with C = "C" and T = "int () const" in the first call of make. Then same_type creates a T* and removes the pointer to get back to the same type. GCC 4.9 complains that we cannot create a pointer to a qualified pointer type even though we never instanciate it.