re PR c++/15471 (Incorrect member pointer offsets in anonymous structs/unions)
authorMark Mitchell <mark@codesourcery.com>
Fri, 28 May 2004 23:34:39 +0000 (23:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 May 2004 23:34:39 +0000 (23:34 +0000)
commitb3dd05b10a8318c7af07941d3b13b75b5c4f5683
treefc43bc68b07b9156872a885e6b8eb0ad184a0c72
parent5182fafe486b98e95bd51d2d665a2a18f397fbe4
re PR c++/15471 (Incorrect member pointer offsets in anonymous structs/unions)

PR c++/15471
* typeck.c (unary_complex_lvalue): Use context_for_name_lookup
when determining the scope to use for a pointer to member.
(lookup_anon_field): Give it external linkage.
* cp-tree.h (lookup_anon_field): Declare it.
* expr.c (cplus_expand_constant): Use it.

From-SVN: r82401
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/expr.c
gcc/cp/typeck.c