* decl.c (grokdeclarator): Reject pointer to qualified function
type.
From-SVN: r145367
2009-03-31 Jason Merrill <jason@redhat.com>
- PR c++/37806
+ * decl.c (grokdeclarator): Reject pointer to qualified function
+ type.
+
+ PR c++/37806, core issue 547
* typeck.c (cp_apply_type_quals_to_decl): Don't apply any quals
to a typedef.
* tree.c (cp_build_qualified_type_real): Don't apply restrict to a
2009-03-31 Jason Merrill <jason@redhat.com>
+ * g++.dg/other/typedef2.C: New test.
+
PR c++/37806
* g++.dg/template/typedef17.C: New test.
--- /dev/null
+typedef void fn() const;
+
+fn* fp; // { dg-error "pointer.*qualified function type" }