I have written the following code(that uses typedef), which compiles with microsoft visual studio but not with gcc and clang.
using type = int(int)&;
using type2 = type&; //compiles with msvc but rejcted in gcc and clang
Gcc says cannot declare reference to qualified reference type
but msvc accepts it.
Is this another bug of msvc or the program is well-formed?