From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25484 invoked by alias); 8 Apr 2005 19:12:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25177 invoked by uid 48); 8 Apr 2005 19:12:42 -0000 Date: Fri, 08 Apr 2005 19:12:00 -0000 From: "dpatel at apple dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050408191241.20907.dpatel@apple.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug preprocessor/20907] New: long comments throw off line numbers X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg01053.txt.bz2 List-Id: It seems that long comment blocks can throw off gcc's notion of the source line number. Here is a sample test case (also attached in case the line breaks get messed up pasting in): /* This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. This is a really long comment. */ #warning test warning #include int main(int argc, char *argv) { printf("This is line %d\n", __LINE__); } -- Summary: long comments throw off line numbers Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dpatel at apple dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20907