This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with the EGCS cpp?


At 11:10 PM 2/18/99 +0100, you wrote:
>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.


That's weird. Now I can't get the "parse error before ::" I was getting
with my SCOPE macro to reproduce!! I feel like I'm living in a cartoon,
where knowledge causes things... knowing you're over the edge of a cliff
making you fall, and knowing that the bug you observed can't possibly
happen makes it disappear.



-- 
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."    -------------------------------------------------
        -- B. Mandelbrot  |http://surf.to/pgd.net
_____________________ ____|________     Paul Derbyshire     pderbysh@usa.net
Programmer & Humanist|ICQ: 10423848|


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]