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]

protoize aborts on comment in #define


Here's a short C example on which protoize aborts.
Apparently protoize doesn't strip comments before
parsing preprocessor symbols in do_cleaning().
In this example it can't find the closing ' character. 

Bert Gijsbers

#define A 1 /* one comment in a define
               shouldn't crash, or? */

int some_fun(arg)
    int arg;
{
    return arg + 1;
}



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