[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Incorrect demangling
On Sat, 21 Apr 2012, Mouse wrote:
> I see this behaviour on 4.0.1 i386, 5.1 i386, 1.4T sparc, and
> 4.0_STABLE i386. I'm curious how widespread it is. (In particular,
> I'd very much like to know if others on such systems don't see it.)
> % cat z.c
> extern void foo__prep(void);
> int main(void);
> int main(void)
> % cc -o z z.c
> /var/tmp//ccKokvnE.o: In function `main':
> z.c:(.text+0x12): undefined reference to `foo(long double *,...)( *)'
> The issue, of course, is that it should be reporting foo__prep, not a
> bizarre prototypeish thing, in the complaint. This looks to me like a
> misfire of C++ demangling, but that doesn't really help all that much,
> especially since there's no C++ involved.
well if you investigated a bit more you might find that it is not the C
compiler that is doing this.
Main Index |
Thread Index |