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: Problems compiling a small C++ test with gcc


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


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