[Bug preprocessor/27746] ICE on openmp code when using _Pragma from macro
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 25 12:29:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list