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:
parent
0e183333b2
commit
2553fb66d9
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
typedef void fn() const;
|
||||
|
||||
fn* fp; // { dg-error "pointer.*qualified function type" }
|
Loading…
Reference in New Issue