From 6636039340996589400
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,2011c154e12ede7e,start
X-Google-Attributes: gidf78e5,public
From: krotoff@such.srcc.msu.su (Alexander Krotoff)
Subject: inconsistance in over.over
Date: 1996/02/01
Message-ID: <4eo2mk$7tc@boy.nmd.msu.ru>#1/1
X-Deja-AN: 137508368
organization: Research Computer Center, Moscow State University
x-original-date: 31 Jan 1996 18:43:16 +0300
x-auth: PGPMoose V1.1 PGP comp.std.c++
newsgroups: comp.std.c++

Hello c++ gurus,

There is small inconsistance in the Oct 95 WP:
-----------------------------------------------------------------------
13.4	Address of overloaded function	[over.over]
In the example on the end of the section:

	int (X::*p5)(int)  = &(X::f);	// error: wrong syntax for</B>
					// pointer to member</B>
	int    (*p6)(long) = &(X::f);	// OK</B>1

Error: qualified-id enclosed in parentheses.
-----------------------------------------------------------------------
5.3.1	Unary operators			[expr.unary.op]

3	A pointer to member is only formed when an explicit & is used and
	its operand is a qualified-id not enclosed in parentheses.
-----------------------------------------------------------------------

I suppose the error is in the over.over.

--
Alexander N. Krotoff		krotoff@such.srcc.msu.su
Research Computer Center	tel: +7(095)939-2638
Moscow State University		fax: +7(095)939-4430
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]



