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++/25294] [4.0 Regression] Bogus "unterminated comment" error from #pragma comment



------- Comment #11 from jakub at gcc dot gnu dot org  2006-01-04 12:32 -------
Subject: Bug 25294

Author: jakub
Date: Wed Jan  4 12:31:59 2006
New Revision: 109329

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109329
Log:
        PR c++/25294
        * directives.c (do_pragma): If pragma line ends with multi-line
        block comment, end the saved deferred pragma string before that
        comment.  Handle embedded '\0' chars on the pragma line.

        * gcc.dg/pragma-pack-3.c: New test.
        * g++.dg/parse/pragma3.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/pragma3.C
    branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pragma-pack-3.c
Modified:
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/libcpp/ChangeLog
    branches/gcc-4_0-branch/libcpp/directives.c


-- 


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



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