[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #9 from jakub at gcc dot gnu dot org 2006-01-01 00:10 --- Fixed with ugly hack in 4.1 and on the trunk, will be hopefully soon replaced with pragma handling merge from gomp-20050608-branch. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- 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
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #7 from jakub at gcc dot gnu dot org 2005-12-31 23:46 --- Subject: Bug 25294 Author: jakub Date: Sat Dec 31 23:45:58 2005 New Revision: 109201 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109201 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: trunk/gcc/testsuite/g++.dg/parse/pragma3.C trunk/gcc/testsuite/gcc.dg/pragma-pack-3.c Modified: trunk/gcc/testsuite/ChangeLog trunk/libcpp/ChangeLog trunk/libcpp/directives.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | URL||http://gcc.gnu.org/ml/gcc- ||patches/2005- ||12/msg01898.html Status|NEW |ASSIGNED Last reconfirmed|2005-12-07 14:45:07 |2005-12-29 11:39:51 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #6 from mmitchel at gcc dot gnu dot org 2005-12-20 08:47 --- The problem is that directives.c:do_pragma says: /* Squirrel away the pragma text. Pragmas are newline-terminated. */ However, as this example shows, simply saving the entire line is incorrect; we have not already performed the Phase 3 elimination of comments at this point. I don't see any good alternative other than to check for the specific case of a comment starting on this line, and, if the comment is not ended before the end of the line, treating the end of the pragma as occurring directly before the comment, rather than at the end of the line. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #5 from mmitchel at gcc dot gnu dot org 2005-12-19 19:14 --- This needs fixing before release: P1. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #4 from jakub at gcc dot gnu dot org 2005-12-13 13:00 --- The problem isn't present on gomp-20050608-branch (where pragma handling has been revamped). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #3 from pinskia at gcc dot gnu dot org 2005-12-12 03:09 --- : Search converges between 2004-09-20-161001-trunk (#551) and 2004-09-21-094824-trunk (#552). Looks like this was caused by: 2004-09-20 Matt Austern <[EMAIL PROTECTED]> Zack Weinberg <[EMAIL PROTECTED]> -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-07 14:47 --- Another example which shows this is specific to the C++ front-end: struct f{ #pragma pack(1) /* Start comment end comment on next line */ }; int main(int argc, char *argv[]) { return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294
[Bug c++/25294] [4.0/4.1/4.2 Regression] Bogus "unterminated comment" error from #pragma comment
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-07 14:45 --- Confirmed a regression from 3.4.0. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||rejects-valid Known to fail||4.0.0 4.1.0 4.2.0 Known to work||3.4.0 Last reconfirmed|-00-00 00:00:00 |2005-12-07 14:45:07 date|| Summary|Bogus "unterminated comment"|[4.0/4.1/4.2 Regression] |error from #pragma comment |Bogus "unterminated comment" ||error from #pragma comment Target Milestone|--- |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25294