[Bug c++/50800] Internal compiler error in finish_member_declarations, possibly related to may_alias attribute
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 26 13:04:00 GMT 2014
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
More information about the Gcc-bugs
mailing list