error: out of macro space!

I am not sure if this is really a bug or just my poor understanding of the preprocessor but the attached file will cause an error message if run with 'cpp macro.c':

macro.c:10: error: out of macro space!

The problem is obviously caused by the terminating slash in line 2. If removed cpp expands the macros just fine.

Description

Hi,
I am not sure if this is really a bug or just my poor understanding of the preprocessor but the attached file will cause an error message if run with 'cpp macro.c':
macro.c:10: error: out of macro space!
The problem is obviously caused by the terminating slash in line 2. If removed cpp expands the macros just fine.

The construction // is created inside the macro while expanding, causing cpp to assume that it is a comment.
Logic must be added to distinguish this from a comment that is legal, created by -C for lint.

Anders Magnusson added a comment - 27/Jul/12 09:44 PM The construction // is created inside the macro while expanding, causing cpp to assume that it is a comment.
Logic must be added to distinguish this from a comment that is legal, created by -C for lint.