Commit 2553fb66 by Jason Merrill Committed by Jason Merrill

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

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

From-SVN: r145367
parent 0e183333
2009-03-31 Jason Merrill <jason@redhat.com> 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 * typeck.c (cp_apply_type_quals_to_decl): Don't apply any quals
to a typedef. to a typedef.
* tree.c (cp_build_qualified_type_real): Don't apply restrict to a * tree.c (cp_build_qualified_type_real): Don't apply restrict to a
......
2009-03-31 Jason Merrill <jason@redhat.com> 2009-03-31 Jason Merrill <jason@redhat.com>
* g++.dg/other/typedef2.C: New test.
PR c++/37806 PR c++/37806
* g++.dg/template/typedef17.C: New test. * g++.dg/template/typedef17.C: New test.
......
typedef void fn() const;
fn* fp; // { dg-error "pointer.*qualified function type" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment