[Bug c++/85128] Local scope type(def) falsely assumed to change meaning of outer scope type(def)
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 31 13:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85128
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
template <class T> class a;
struct b {
typedef a<b> a;
};
Is the reduced testcase. The C++ standard is clear here about this case too.
A diagnostic is not required either. Gcc generates one as it can.
More information about the Gcc-bugs
mailing list