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
This commit is contained in:
Jakub Jelinek
2006-01-01 00:45:58 +01:00
committed by Jakub Jelinek
parent 2984956b2f
commit d09e893f10
5 changed files with 115 additions and 4 deletions
+7
View File
@@ -1,3 +1,10 @@
2006-01-01 Jakub Jelinek <jakub@redhat.com>
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.
2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/23333