This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jan 2006 00:00:59 -0000
- Subject: [Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
- References: <bug-25294-11833@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jakub at gcc dot gnu dot org 2006-01-01 00:00 -------
Subject: Bug 25294
Author: jakub
Date: Sun Jan 1 00:00:56 2006
New Revision: 109202
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109202
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_1-branch/gcc/testsuite/g++.dg/parse/pragma3.C
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pragma-pack-3.c
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/libcpp/ChangeLog
branches/gcc-4_1-branch/libcpp/directives.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294