This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix compile error with use of 'typename' outside of template.
- From: Cary Coutant <ccoutant at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 12 Jan 2016 19:29:39 -0000
- Subject: [binutils-gdb] Fix compile error with use of 'typename' outside of template.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1193addae7e5a24dc867f9946681ef0781a766f
commit d1193addae7e5a24dc867f9946681ef0781a766f
Author: H.J. Lu <hongjiu.lu@intel.com>
Date: Tue Jan 12 11:27:55 2016 -0800
Fix compile error with use of 'typename' outside of template.
elfcpp/
* elfcpp_internal.h (Mips64_rel_data, Mips64_rela_data): Remove
'typename'.
Diff:
---
elfcpp/ChangeLog | 5 +++++
elfcpp/elfcpp_internal.h | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index 198eb92..caccf3e 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfcpp_internal.h (Mips64_rel_data, Mips64_rela_data): Remove
+ 'typename'.
+
2016-01-11 Cary Coutant <ccoutant@gmail.com>
* elfcpp.h (Mips64_rel, Mips64_rel_write): New classes.
diff --git a/elfcpp/elfcpp_internal.h b/elfcpp/elfcpp_internal.h
index edca55f..a5d647f 100644
--- a/elfcpp/elfcpp_internal.h
+++ b/elfcpp/elfcpp_internal.h
@@ -184,7 +184,7 @@ struct Rela_data
struct Mips64_rel_data
{
- typename Elf_types<64>::Elf_Addr r_offset;
+ Elf_types<64>::Elf_Addr r_offset;
Elf_Word r_sym;
unsigned char r_ssym;
unsigned char r_type3;
@@ -194,7 +194,7 @@ struct Mips64_rel_data
struct Mips64_rela_data
{
- typename Elf_types<64>::Elf_Addr r_offset;
+ Elf_types<64>::Elf_Addr r_offset;
Elf_Word r_sym;
unsigned char r_ssym;
unsigned char r_type3;