This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "Namespaces are fully supported." ????
- To: egcs at cygnus dot com
- Subject: Re: "Namespaces are fully supported." ????
- From: Nathan Myers <ncm at nospam dot cantrip dot org>
- Date: Mon, 14 Sep 1998 17:04:16 -0700
- Newsgroups: cygnus.egcs
- Organization: http://www.cantrip.org/
- References: <ABA7J_rSc4.cygnus.egcs@khim.mccme.ru>
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