This is the mail archive of the gcc-bugs@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]

wrong public reference (g++ v2.8.0)


Hello,

Having tried gcc 2.8.0 I got it after compiling egcs 1.0.1 (for Solaric
2.5.1 SPARC5)
I found out that the compiler generated wrong public reference
when I had compiled the things like that:

typedef const struct {
int x;
} Test, *pTest;

void foo(pTest);

Test t = {0};

int main()
{
  foo(&t);
  return 0;
}

The problem is that if you try to print name list of the object file
using '/usr/ccs/bin/nm' you can see that the public name of 'foo' looks
like 'foo__FPC3._0'
and 'c++filt' demangls it as foo(._0 const *) that is wrong !!!
BUT using g++ v.2.7.2.3 the name looks 'foo__FPCC4Test' and after
demangling 'foo(Test const const *)' that is right.

So, Is it the bug or the feature of the latests release of gcc ???

I would greatly appreciate your answering me if this bug (?) was fixed
in egcs 1.0.2.

Best regards,
Igor


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