This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold][aarch64]Patch for Relaxation


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]