This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold][aarch64]Patch for Relaxation
- From: Cary Coutant <ccoutant at google dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Ryan Mansfield <rmansfield at qnx dot com>, Binutils <binutils at sourceware dot org>
- Date: Fri, 17 Oct 2014 16:29:15 -0700
- Subject: Re: [gold][aarch64]Patch for Relaxation
- Authentication-results: sourceware.org; auth=none
- References: <CACkGtrhqMpo-Fdt+39XJTLTjjJtz3essmdDEdQY8Owni66sgkw at mail dot gmail dot com> <CAHACq4q2f3bhz4tWHMbz1zLbGDskopaomqveTn_A0ZjwXcBH4Q at mail dot gmail dot com> <CACkGtrjxw9d9GRmiz=ztCne6n8+Dv17jegM45db7HkMLUmy2Qw at mail dot gmail dot com> <CAHACq4rWadE1fDRMZOmqZ4Mr1Qago25a_cd9+u04y9M0b691ug at mail dot gmail dot com> <CACkGtrgoWM8f1Oc71nVTGDrNztCt0BCx1-FiQavn=QOLpZ4tnA at mail dot gmail dot com> <CAHACq4q6_XqUx9ObfG-TZLzAzh_-6L+K45osA_KJ2rTLdvQs6g at mail dot gmail dot com> <543FE312 dot 7090205 at qnx dot com> <CAKOQZ8zTmMNsDnFobgch+-NTu5f8ZoA1u-QYiPVTSsH8aGM8aA at mail dot gmail dot com> <CAHACq4r_DfDOvQuW3jpkm2dObGRd7q5hLcjPEksR8XbgoMDSNw at mail dot gmail dot com> <CAHACq4rh0WMhKZ345+ZBGhhUHrXNVOFG4a11BdP8ZieDChnnxw at mail dot gmail dot com> <CAKOQZ8wu7hupKeAwh_ERrGo_G-JKgtZuP3+ACBS_szrFqvLXuw at mail dot gmail dot com>
> Sure, I guess so. I'm not sure why typename is not needed in newer
> versions. We do normally use typename with This::Status, and it is,
> after all, a type.
While I'd expect to need "typename Foo<size, big_endian>::Status
status = ...", because the compiler can't tell at that point whether
"Foo<size, big_endian>" is a type or not, I wouldn't expect it to need
"typename" where we use an intermediate typedef -- it should be able
to know that "This" is a type. I guess newer compilers are smart
enough to figure that out, and 4.2 wasn't.
-cary