This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with the EGCS cpp?
- To: zack at rabi dot columbia dot edu
- Subject: Re: Problem with the EGCS cpp?
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 18 Feb 1999 23:10:42 +0100
- CC: pderbysh at usa dot net, egcs at egcs dot cygnus dot com
- References: <199902180539.AAA09771@blastula.phys.columbia.edu>
> I'm surprised the scope resolution operator :: does not allow
> whitespace on either side, since it is grammatically an operator, not
> part of an identifier. This might be a bug in the C++ front end. Or
> I might be demonstrating once again that I know squat about C++.
Neither, nor. g++ allows white space around the scope operator, just
as you'd expect.
namespace A{
int x;
}
void f()
{
A ::x=1;
}
compiles fine for me, and I can't see a reason why it shouldn't.
Regards,
Martin