[Bug preprocessor/27746] ICE on openmp code when using _Pragma from macro
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 25 16:45:00 GMT 2006
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-05-25 16:44 -------
(In reply to comment #10)
> #define parallel _Pragma("omp parallel")
> int
> main()
> {
> #pragma omp parallel
> {}
> }
This is not invalid according to:
http://gcc.gnu.org/onlinedocs/cpp/Implementation_002ddefined-behavior.html
Which says the following (unless that is not up to date also):
Treatment of a `#pragma' directive that after macro-expansion results in a
standard pragma.
No macro expansion occurs on any `#pragma' directive line, so the question does
not arise.
Note that GCC does not yet implement any of the standard pragmas.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27746
More information about the Gcc-bugs
mailing list