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]
Other format: [Raw text]

[Bug preprocessor/13726] New: [3.3/3.4/3.5 regression]cpp -C -dI loses comments on same line as #include directives


Not really critical, but it is a regression from 2.95 and is known to break 
some programs, notably one called cxref.  :-( 
 
Put this in test.c: 
#include "test.h" /* comment */ 
 
(Put anything in test.h) 
 
cpp -C -dI outputs 
#include "test.h" 
losing the comment.

-- 
           Summary: [3.3/3.4/3.5 regression]cpp -C -dI loses comments on
                    same line as #include directives
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neroden at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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