decl.c (grokdeclarator): Reject pointer to qualified function type.

* decl.c (grokdeclarator): Reject pointer to qualified function
        type.

From-SVN: r145367
This commit is contained in:
Jason Merrill 2009-03-31 15:06:17 -04:00 committed by Jason Merrill
parent 0e183333b2
commit 2553fb66d9
3 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,9 @@
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

View File

@ -1,5 +1,7 @@
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.

View File

@ -0,0 +1,3 @@
typedef void fn() const;
fn* fp; // { dg-error "pointer.*qualified function type" }