Commit 2cacb78
committed
[libc++] Make
Previously, libc++'s `_Atomic(T)` directly expanded to
`::std::atomic<T>`, while the standard wording specified that it uses an
alias template. The divergence was observable and made libc++ accept
some invalid code like `struct _Atomic(T) t;`.
This patch makes libc++'s `_Atomic(T)` directly use an internal alias
template to eliminate such divergence._Atomic(T) directly use an alias template1 parent ac68dd5 commit 2cacb78
File tree
2 files changed
+31
-1
lines changed- libcxx
- include
- test/std/atomics/stdatomic.h.syn
2 files changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments