home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1810 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!stanford.edu!lucid.com!lucid.com!jss
  3. From: jss@lucid.com (Jerry Schwarz)
  4. Subject: Re: Ambiguity in member pointer declaration
  5. Message-ID: <1992Dec16.211648.4858@lucid.com>
  6. Sender: usenet@lucid.com
  7. Reply-To: jss@lucid.com (Jerry Schwarz)
  8. Organization: Lucid, Inc.
  9. References: <PNORI.92Dec14161301@hyperion.lsi-j.co.jp> <PNORI.92Dec16132118@hyperion.lsi-j.co.jp>
  10. Date: Wed, 16 Dec 92 21:16:48 GMT
  11. Lines: 24
  12.  
  13. In article <PNORI.92Dec16132118@hyperion.lsi-j.co.jp>, pnori@lsi-j.co.jp (Pochi NORIMATSU) writes:
  14. |> In article <1992Dec15.011359.17235@lucid.com> jss@lucid.com (Jerry Schwarz) writes:
  15. jss:
  16. |> >   The grammar
  17. |> >   doesn't contain any rules that derive a declarator starting with "::".
  18. |> >   And that omission is deliberate.
  19.  
  20.  
  21. pnori:
  22. |> But in ARM section 8.2.3, it says that the declarator representing a
  23. |> pointer to members has the form
  24. |> 
  25. |>     complete-class-name :: * cv-qualifier-list<opt> D1
  26. |> 
  27. |> And complete-class-name can start with ::. Or is it typo?
  28.  
  29.  
  30. pnori is right.  This grammar path does lead to a declarator that begins
  31. with a "::".  I suspect this is an oversight. Since, as the original
  32. item pointed out, it also leads to an ambiguity it is something the
  33. standards committee should address.  I think it should be made illegal
  34. on the grounds of my original comment.
  35.  
  36.   -- Jerry Schwarz
  37.