This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/27746] ICE on openmp code when using _Pragma from macro



------- Comment #10 from jakub at gcc dot gnu dot org  2006-05-25 12:29 -------
 #define parallel _Pragma("omp parallel")
 int
 main()
 {
 #pragma omp parallel
 {}
 }

is ICE on invalid code, OpenMP 2.5 says in 2.1 Directive Format:
Preprocessing tokens following the #pragma omp are subject to macro
replacement.
And, #pragma omp _Pragma ("omp parallel")
is of course not valid.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27746


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]