diff options
author | Douglas Gregor <dgregor@cs.indiana.edu> | 2005-02-21 23:12:27 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2005-02-21 23:12:27 +0000 |
commit | 9804209d324be049840389053e370d5a1ce51550 (patch) | |
tree | 04879cd2510172e1979dedf06e8a47fcc01ae72a /libjava/java/sql/SQLWarning.java | |
parent | 89e4aa8109752fdf412a763afcb721acca852e96 (diff) | |
download | gcc-9804209d324be049840389053e370d5a1ce51550.zip gcc-9804209d324be049840389053e370d5a1ce51550.tar.gz gcc-9804209d324be049840389053e370d5a1ce51550.tar.bz2 |
re PR c++/19076 (Pointer to member function not matched to pointer to member template)
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.
From-SVN: r95356
Diffstat (limited to 'libjava/java/sql/SQLWarning.java')
0 files changed, 0 insertions, 0 deletions