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: "Namespaces are fully supported." ????


Khimenko Victor wrote:
> I could not compile even namespace-detection program from MICO with pgcc 1.1b!
> Or this is pgcc-specific bug ?
>
> namespace foo { typedef int bar; }
> foo::bar i;
> using foo;
> bar j;
> 
> int main() { return 0; }

The error messages were correct: there is a syntax error on 
line 3, resulting in another error on line 4.  Changing

  3s/using foo/using namespace foo/

helps. 

Nathan Myers
ncm@cantrip.org


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