| Issue |
103972
|
| Summary |
NS_PER_
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
oerdnj
|
Looks like clang 19 leaks these into public **C** namespace:
```c
// POSIX implementation using clock_gettime where available. The clock_gettime
// result is in nanoseconds, which is converted as necessary to
// - deciseconds for kind 1
// - milliseconds for kinds 2, 4
// - nanoseconds for kinds 8, 16
constexpr unsigned_count_t DS_PER_SEC{10u};
constexpr unsigned_count_t MS_PER_SEC{1'000u};
constexpr unsigned_count_t NS_PER_SEC{1'000'000'000u};
```
(from https://github.com/llvm/llvm-project/pull/96652)
Is this something you intended to do? It breaks our builds and I am guessing we are not the people on the earth who already defined these generic values - perhaps those internal to the compiler need to be prefixed with `__`?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs