C++ cast parsing bug

Hidvegi hzoli@austin.ibm.com
Wed Sep 27 21:56:00 GMT 2000


The following function does not compile with g++, it probably thinks
that '(long' starts a C-style cast.

Zoli

long
foo(long x)
{
    return (long(short(x)) + 1);
}


More information about the Gcc-bugs mailing list