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 c/52648] New: remove string literal by preprocessor


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

             Bug #: 52648
           Summary: remove string literal by preprocessor
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sahoorajesh2011@gmail.com


when compling...below problem exists..
main()
{
 /*printf("this is a student from india*/");*/
}


if this code compiled...then
instead of removing the whole line
it only remove upto "*/" present inside a string literal.
and also giving a preprocessor error..
I think this is a minor bug which can be fixed very easily..


after compilation code is...
main()
{
                                          ");*/
}

I think that this should be...
main()
{

}


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