This testcase:

#define debug(format, ...) format, ## __VA_ARGS__)
debug(X);
debug(Y, 1, 2);
debug(Y, 1, 2 );
debug(Z, );
debug(W,);

Should preprocess to:

X);
Y, 1, 2);
Y, 1, 2);
Z, );
W, );

not:

X);
Y, 1, 2);
Y, 1, 2);
Z,);
W,);


Z/W should have spaces.


-- 
           Summary: preprocessor loses leading whitespace
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sabre at nondot dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35010

Reply via email to