public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/20907] New: long comments throw off line numbers
@ 2005-04-08 19:12 dpatel at apple dot com
  2005-04-08 20:30 ` [Bug preprocessor/20907] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dpatel at apple dot com @ 2005-04-08 19:12 UTC (permalink / raw)
  To: gcc-bugs

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 <stdio.h>

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-04-24 20:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 19:12 [Bug preprocessor/20907] New: long comments throw off line numbers dpatel at apple dot com
2005-04-08 20:30 ` [Bug preprocessor/20907] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-08 20:34 ` pinskia at gcc dot gnu dot org
2005-04-08 20:37 ` pinskia at gcc dot gnu dot org
2005-04-19 21:30 ` bothner at gcc dot gnu dot org
2005-04-21 17:09 ` cvs-commit at gcc dot gnu dot org
2005-04-21 17:22 ` bothner at gcc dot gnu dot org
2005-04-21 17:27 ` dpatel at apple dot com
2005-04-21 18:40 ` cvs-commit at gcc dot gnu dot org
2005-04-24 20:05 ` [Bug preprocessor/20907] [4.0 " cvs-commit at gcc dot gnu dot org
2005-04-24 20:32 ` cvs-commit at gcc dot gnu dot org
2005-04-24 20:37 ` cvs-commit at gcc dot gnu dot org
2005-04-24 20:44 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).