[Bug c++/48593] Wrong return type when applying address operator to inherited, template dependend member, using a typedef
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 14 08:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48593
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid,
| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.04.14 08:03:53
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-14 08:03:53 UTC ---
confirmed, the standard is quite clear:
A pointer to member is only formed when an explicit & is used and its operand
is a qualified-id not enclosed
in parentheses. [ Note: that is, the expression &(qualified-id), where the
qualified-id is enclosed in
parentheses, does not form an expression of type “pointer to member.” ...]
More information about the Gcc-bugs
mailing list