Remove typename on elfcpp::Elf_types<size>::Elf_Addr
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 5 Mar 2015 15:52:41 +0000 (07:52 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 5 Mar 2015 15:52:41 +0000 (07:52 -0800)
GCC 4.2 complains:

binutils/gold/object.cc:3261: error: using ‘typename’ outside of template

This patch removes typename.  It works with both GCC 4.2 and 4.8.

* output.cc (Relobj::initialize_input_to_output_map<size>):
Remove typename on elfcpp::Elf_types<size>::Elf_Addr.

gold/ChangeLog
gold/object.cc

index fe6a56bade50e3a2e85aeda5b45dfda6661f39dd..24d3560774149cc06bed1817269e81d2f0b564c9 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * output.cc (Relobj::initialize_input_to_output_map<size>):
+       Remove typename on elfcpp::Elf_types<size>::Elf_Addr.
+
 2015-03-04  Cary Coutant  <ccoutant@google.com>
 
        * parameters.cc (Parameters::set_target_once): Call
index 7286e5a1f771855fe38f0f227ac02295ebf6818c..84e4568fc5ea12f3703b7cbe1d88e4c28e705924 100644 (file)
@@ -3258,18 +3258,18 @@ make_elf_object(const std::string& name, Input_file* input_file, off_t offset,
 template
 void
 Relobj::initialize_input_to_output_map<64>(unsigned int shndx,
-      typename elfcpp::Elf_types<64>::Elf_Addr starting_address,
+      elfcpp::Elf_types<64>::Elf_Addr starting_address,
       Unordered_map<section_offset_type,
-      typename elfcpp::Elf_types<64>::Elf_Addr>* output_addresses) const;
+      elfcpp::Elf_types<64>::Elf_Addr>* output_addresses) const;
 #endif
 
 #if defined(HAVE_TARGET_32_LITTLE) || defined(HAVE_TARGET_32_BIG)
 template
 void
 Relobj::initialize_input_to_output_map<32>(unsigned int shndx,
-      typename elfcpp::Elf_types<32>::Elf_Addr starting_address,
+      elfcpp::Elf_types<32>::Elf_Addr starting_address,
       Unordered_map<section_offset_type,
-      typename elfcpp::Elf_types<32>::Elf_Addr>* output_addresses) const;
+      elfcpp::Elf_types<32>::Elf_Addr>* output_addresses) const;
 #endif
 
 #ifdef HAVE_TARGET_32_LITTLE
This page took 0.03419 seconds and 4 git commands to generate.