https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124447

--- Comment #6 from Aakash Gupta <uchanahome8 at gmail dot com> ---
Got it, thanks. I will go with the following approach for my use case for now:

```
namespace X {
    using int64_t = std::int64_t;
}

...
[:... ^^X; ... :]
```


On a side note, given that `std::int_{}_t/std::uint_{}_t` are extensively used
and my example was not able to compile due to current rules, is it possible to
change 
```
namespace std {
  using ::int64_t;
}
```

to

```
namespace std {
  using int64_t = ::int64_t;
}
```
?

Working example with reproducer for different type:
https://godbolt.org/z/8GdcGecq7.

Not sure if this will be ABI breaking change/is it even feasible to make such
change.

Reply via email to