]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR c++/25294 (Bogus "unterminated comment" error from #pragma comment)
authorJakub Jelinek <jakub@redhat.com>
Sat, 31 Dec 2005 23:45:58 +0000 (00:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 31 Dec 2005 23:45:58 +0000 (00:45 +0100)
commitd09e893f10b6bb8bea9eafce9fd3f008f9cb5027
treece308977cf7e39a7110238524fc15f921883e86a
parent2984956b2f436d4be9d85777a4d4ba1ea00a208a
re PR c++/25294 (Bogus "unterminated comment" error from #pragma comment)

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.

From-SVN: r109201
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/pragma3.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pragma-pack-3.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c