diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-21 23:12:27 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-21 23:12:27 +0000 |
commit | 11ef5c280ff39d33ee2e35661f850af5d5603e3e (patch) | |
tree | 04879cd2510172e1979dedf06e8a47fcc01ae72a /libjava/java/io/ObjectStreamField.java | |
parent | 1d8fadb0e8bd2e98ca1cef012be8cc1b18375d47 (diff) | |
download | ppe42-gcc-11ef5c280ff39d33ee2e35661f850af5d5603e3e.tar.gz ppe42-gcc-11ef5c280ff39d33ee2e35661f850af5d5603e3e.zip |
2005-02-21 Douglas Gregor <dgregor@cs.indiana.edu>
PR c++/19076
PR c++/6628
* cp-tree.h (cp_apply_type_quals_to_decl): Declared.
* decl.c (grokdeclarator): Pedwarn about qualifying a function
type.
Add qualifiers when declaring a typedef of a function type.
Member function pointers pick up the qualifiers of the typedef
used to declare them.
Don't complain about creating cv-qualified function types.
Complain about qualified function typedefs that are used to
declare non-static member functions or free functions.
Use cp_apply_type_quals_to_decl.
(start_preparsed_function): Use cp_apply_type_quals_to_decl.
(grokclassfn): Use cp_apply_type_quals_to_decl.
* error.c (dump_type_suffix): Print qualifiers for function
types.
* pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
(tsubst): When substituting a function type into a member
pointer type, pass along the qualifiers.
(unify): Unify member pointers to member function pointers.
* tree.c (cp_build_qualified_type_real): Function types may be
qualified. This includes restrict qualifiers.
* typeck.c (cp_apply_type_quals_to_decl): New function to replace
use of c_apply_type_quals_to_decl. Drops qualifiers that are being
added to function types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/io/ObjectStreamField.java')
0 files changed, 0 insertions, 0 deletions