https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109621
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|GCC accepts invalid program |[10/11/12/13/14 Regression]
|with multiple using |GCC accepts invalid program
|declarations |with multiple using
| |declarations
Known to fail| |4.4.7
Target Milestone|--- |10.5
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Known to work| |4.1.2
Last reconfirmed| |2023-04-25
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++98 version which shows it is a regression and it started to fail between GCC
4.1.2 and 4.4.7:
```
namespace X
{
struct type {};
}
namespace Y
{
typedef int type;
}
using Y::type;
using X::type;
int i = sizeof(type); //gcc and msvc accepts this but clang rejects this
```