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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-10-01

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #3)
> Not sure if this is a good reduction but:
> ```
> namespace gfx {
> typedef int MarginDouble;
> }
> using gfx::MarginDouble;
> using MarginDouble = MarginDouble;
> ```

yes that is a good reduction.

Slightly smaller with the names changed:
```
namespace ns {
  typedef int t;
}
using ns::t;
using t = ns::t;
```

clang accepts this. having both `using ns::t` and the other using is a bit odd
but still valid.

Reply via email to