[Prev][Next][Index]

mallinfo example



In <malloc.h>, we have a "struct mallinfo { ... };" and then also
a function "mallinfo()". Later in my code, a call to mallinfo is
munged from "mallinfo()" to "(mallinfo)". Presumably Sage++ doesn't
get the separation of the namespaces.

Example
------------------------------------------------------------------------
struct mallinfo { int j; };
struct mallinfo mallinfo();

main(){
  struct mallinfo i = mallinfo();
}
------------------------------------------------------------------------
Note: The function mallinfo() must return a struct mallinfo to exhibit
the bug.