Commit 0800f12
committed
[flang][OpenMP] Don't allow namelist variables with threadprivate
While the standard doesn't explicitly mention namelist variables in this
case, it does prohibit privatization of namelist variables. Flang
decided to also prohibit namelist variables from appearing in a
reduction clause.
Variables that are part of a namelist are linked to I/O mechanisms, and
their memory association and initialization are managed by the compiler
in a way that conflicts with the requirements of threadprivate
variables. I propose we should add this restriction.1 parent 30fa7a2 commit 0800f12
File tree
2 files changed
+21
-0
lines changed- flang
- lib/Semantics
- test/Semantics/OpenMP
2 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
1519 | 1523 | | |
1520 | 1524 | | |
1521 | 1525 | | |
| |||
1571 | 1575 | | |
1572 | 1576 | | |
1573 | 1577 | | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1574 | 1583 | | |
1575 | 1584 | | |
1576 | 1585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments