PR preprocessor/27746
* directives.c (do_pragma): Handle pragma with valid namespace and invalid name coming from macro expansion. * directives.c (destringize_and_run): Initialize next field in context. PR c/27747 PR c++/27748 * directives.c (destringize_and_run): Set NO_EXPAND on the tokens. * macro.c (_cpp_backup_tokens): Fix comment typo. testsuite/ PR c/27747 * gcc.dg/cpp/_Pragma6.c: New test. PR c++/27748 * g++.dg/cpp/_Pragma1.C: New test. PR preprocessor/27746 * gcc.dg/gomp/macro-3.c: New test. * gcc.dg/gomp/macro-4.c: New test. * g++.dg/gomp/macro-3.C: New test. * g++.dg/gomp/macro-4.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114519 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/testsuite/ChangeLog 14 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/cpp/_Pragma1.C 10 additions, 0 deletionsgcc/testsuite/g++.dg/cpp/_Pragma1.C
- gcc/testsuite/g++.dg/gomp/macro-3.C 25 additions, 0 deletionsgcc/testsuite/g++.dg/gomp/macro-3.C
- gcc/testsuite/g++.dg/gomp/macro-4.C 29 additions, 0 deletionsgcc/testsuite/g++.dg/gomp/macro-4.C
- gcc/testsuite/gcc.dg/cpp/_Pragma6.c 10 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/_Pragma6.c
- gcc/testsuite/gcc.dg/gomp/macro-3.c 25 additions, 0 deletionsgcc/testsuite/gcc.dg/gomp/macro-3.c
- gcc/testsuite/gcc.dg/gomp/macro-4.c 29 additions, 0 deletionsgcc/testsuite/gcc.dg/gomp/macro-4.c
- libcpp/ChangeLog 15 additions, 0 deletionslibcpp/ChangeLog
- libcpp/directives.c 23 additions, 2 deletionslibcpp/directives.c
- libcpp/macro.c 1 addition, 1 deletionlibcpp/macro.c
Loading
Please register or sign in to comment