С моей точки зрения, type был псевдонимом для int до using-declaration, и так оно и есть до сих пор. псевдоним для int в полном контексте класса. Поэтому я ожидаю, что смысл не изменится.
Код: Выделить всё
using type = int;
struct Test
{
using type = type; // gcc: declaration of 'using Test::type = using type = int' changes meaning of 'type'
};
void foo(Test::type);
Подробнее здесь: https://stackoverflow.com/questions/792 ... ng-of-type
Мобильная версия