typeck.c (build_indirect_ref): Complain about a pointer to data member, too.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 16 Oct 1998 03:37:43 +0000 (03:37 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 16 Oct 1998 03:37:43 +0000 (23:37 -0400)
commit162bc98d096a61193b3cb490a5430fb852d059eb
treebf3ac97d2f9df8fd2274f8ac3a2dd6327958d126
parent94706a5cfc9f995e52279c7594d188d826156f19
typeck.c (build_indirect_ref): Complain about a pointer to data member, too.

* typeck.c (build_indirect_ref): Complain about a pointer to data
member, too.
* typeck2.c (build_m_component_ref): Don't indirect a pointer to
data member.
* init.c (resolve_offset_ref): Don't undo the above.
* cp-tree.h (DECL_C_BIT_FIELD, SET_DECL_C_BIT_FIELD): New macros.
(struct lang_decl_flags): Add `bitfield'.
* class.c (finish_struct_1): Use DECL_C_BIT_FIELD instead of
DECL_BIT_FIELD.
* decl2.c (grokbitfield, grok_alignof): Likewise.
* init.c (build_offset_ref): Likewise.
* typeck.c (build_component_addr, expr_sizeof): Likewise.
* cvt.c (build_up_reference): Don't crash if taking the address
returns error_mark_node.

From-SVN: r23124
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/typeck.c
gcc/cp/typeck2.c