aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/sig.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@markmitchell.com>1998-10-03 23:11:19 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-10-03 23:11:19 +0000
commit01240200ee6cb2f0a7b731faf63b8aa2a3049f61 (patch)
treef8109fee965c4dbf574d2437c97abec84280e237 /gcc/cp/sig.c
parentd5698b07533c991d016c0c16e0fa0d87d1457565 (diff)
downloadgcc-01240200ee6cb2f0a7b731faf63b8aa2a3049f61.zip
gcc-01240200ee6cb2f0a7b731faf63b8aa2a3049f61.tar.gz
gcc-01240200ee6cb2f0a7b731faf63b8aa2a3049f61.tar.bz2
class.c (current_class_ptr, [...]): Clarify documentation.
* class.c (current_class_ptr, current_class_ref): Clarify documentation. * cvt.c (ocp_convert): Don't expect fold to remove all trivial NOP type conversions. * decl.c (decls_match): Use comptypes directly; ignore qualifiers on the DECL. (duplicate_decls): Remove qualifier checks on DECL. (grokdeclarator): Make the type built up include top-level qualifiers. * decl2.c (do_dtors): Fix spelling error. * error.c (dump_simple_decl): Don't look at qualifiers on the decl when printing type information. * init.c (build_new_1): Add documentation. Deal with the fact that type of allocated memory now contains qualifiers. * lex.c (is_global): Improve error-recovery. * sig.c (build_member_function_pointer): Don't cast away const on fields of sigtable_entry_type. * tree.c (lvalue_type): Don't look at top-level qualifiers on expressions. * typeck.c (decay_conversion): Likewise. (build_component_ref): Make sure the type of the COMPONENT_REF contains top-level qualifiers, as appropriate. Improve error-handling. (build_indirect_ref): Simplify. Don't strip top-level qualifiers. (build_array_ref): Likewise. (build_unary_op): Improve error-recovery. (unary_complex_lvalue): Make taking the address a bound member function an error, not a sorry. (build_conditional_expr): Look at the type qualifiers, not the qualifiers on the expression itself. From-SVN: r22802
Diffstat (limited to 'gcc/cp/sig.c')
-rw-r--r--gcc/cp/sig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/sig.c b/gcc/cp/sig.c
index 65350db..e70ec3f 100644
--- a/gcc/cp/sig.c
+++ b/gcc/cp/sig.c
@@ -321,7 +321,7 @@ build_member_function_pointer (member)
GNU_xref_ref (current_function_decl, name);
entry = build_lang_field_decl (FIELD_DECL, get_identifier (name),
- TYPE_MAIN_VARIANT (sigtable_entry_type));
+ sigtable_entry_type);
TREE_CONSTANT (entry) = 1;
TREE_READONLY (entry) = 1;