https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50800
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #10 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat finish.ii template <typename> struct B; template <typename _Tp> struct B<_Tp &> { typedef _Tp type; }; template <typename L> typename B<L>::type foo(L &&); int a; struct A { typedef int TA __attribute__((__may_alias__)); }; void d() { foo(a); } int main() { B<A::TA &> b; } markus@x4 tmp % g++ -std=c++11 finish.ii finish.ii: In instantiation of ‘struct B<int&>’: finish.ii:15:25: required from here finish.ii:4:17: internal compiler error: in finish_member_declaration, at cp/semantics.c:2844