This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems compiling a small C++ test with gcc
- To: Denis Perchine <dyp at perchine dot com>
- Subject: Re: Problems compiling a small C++ test with gcc
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 27 Jul 2001 05:44:21 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010701071343.65F0A1C055@mx.webmailstation.com>
On Jul 1, 2001, Denis Perchine <dyp@perchine.com> wrote:
> bash-2.04$ gcc -c -o a.o a.cpp
> a.cpp: In function `void bb::pr_val(cc::dd_rec *)':
> a.cpp:2: `aa::pr_val' is not a function,
> a.cpp:20: conflict with `bb::pr_val(cc::dd_rec *)'
> a.cpp:21: in call to `pr_val'
> gcc-2.95.3, and 3.0 behaves the same way.
> Actually I can not understand why it tried to lookup pr_val in aa namespace
> also... I can not find anything like this in standards.
> Any comments?
Looks like a bug. Will you please submit a bug report with Gnats, if
you haven't done so yet?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me